î Òê[#ã@s‹dZddlTddlZddlZddlmZddlmZGdd„deƒZe dkr‡dd l m Z e eƒndS) zAbout Dialog for IDLE é)Ú*N)ÚtextView)Úidleverc@s£eZdZdZddd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dd„Z dd„Z ddd„Z ddd„ZdS)Ú AboutDialogz!Modal about dialog for idle FcCs tj||ƒ|jddƒ|jd|jƒd|jƒ|sKdndfƒd|_d|_|jƒ|j dt d t ƒ|j |ƒ|j |ƒ|j ƒ|jd |jƒ||_|jjƒ|jd |jƒ|jd |jƒ|jƒd S)zG _htest - bool, change box location when running htest Ú borderwidthéz+%d+%déédz#707070z#ffffffÚheightÚwidthZWM_DELETE_WINDOWzzN)ÚToplevelÚ__init__Z configureZgeometryZ winfo_rootxZ winfo_rootyÚbgÚfgÚ CreateWidgetsZ resizableZFALSEÚtitleZ transientZgrab_setZprotocolÚOkÚparentÚbuttonOkZ focus_setZbindZ wait_window)ÚselfrrZ_htest©rú)/usr/lib/python3.4/idlelib/aboutDialog.pyr s$  !        zAboutDialog.__init__c Csút|dddtƒ}t|ƒ}|jdtdtƒ|jdtdtdtƒt|ddd |j ƒ|_ |j jd d d d ƒt|d |j ƒ}|jdtdtƒt |ddd|j d |j dd6ƒ}|jdddddtd dd dƒdd7}t |d|dtd|j d |j ƒ}|jdddddtddd dd d ƒt |dddtd|j d |j ƒ}|jdddddddtd dd dƒt |dd tjdd…d!dtd|j d |j ƒ}|jdd"dddddtd dd dƒt|dd#dtd$dd |j ƒjdd%dddtddd d d d ƒt |dd&tjjƒdd|j d |j ƒ} | jdd'dddtd dd dƒ|jjd(d)ƒ} t |dd*| d|j d |j ƒ} | jdd'dd#dtd dd dƒt|d |j ƒ} | jdddddddtƒt| dd+d,d%d-|j d |jƒ} | jdtd dd dƒt| dd.d,d%d-|j d |jƒ}|jdtd dd dƒt| dd/d,d%d-|j d |jƒ}|jdtd dd dƒt|dd#dtd$dd |j ƒjdd0dddtddd d d d ƒt |dd1tjd|j d |j ƒ}|jdd2dddtd dd dƒt|d |j ƒ}|jdd3dddddtƒt|dd4d,d%d-|j d |jƒ}|jdtd dd dƒt|dd5d,d%d-|j d |jƒ}|jdtd dd dƒt|dd/d,d%d-|j d |jƒ}|jdtd dd dƒdS)8NréZreliefZsideZfillÚexpandÚtextZCloseZcommandZpadxrZpadyrZIDLErZfontÚcourieréÚboldÚrowrÚcolumnZstickyé z+Python's Integrated DeveLopment EnvironmentÚ ZjustifyZ columnspanézemail: idle-dev@python.orgézhttps://docs.python.org/z/library/idle.htmléér ézPython version: é ÚinfoZ patchlevelz Tk version: ZLicenser ZhighlightbackgroundZ CopyrightZCreditsé zIDLE version: é é ZREADMEZNEWS)rrrz ) ZFrameZSUNKENZpackZBOTTOMÚXZTOPZTRUEZBOTHZButtonrrrZLabelrZgridÚWZLEFTÚsysÚversionZEWÚsplitZtkÚcallZNSEWÚ ShowLicenseÚ ShowCopyrightÚShowPythonCreditsrZ IDLE_VERSIONÚ ShowIDLEAboutÚ ShowIDLENEWSÚShowIDLECredits)rZ frameMainZ frameButtonsZframeBgZ labelTitleZbylineZ labelDescZ labelEmailZlabelWWWZlabelPythonVerZtkVerZ labelTkVerZ py_button_fZ buttonLicenseZbuttonCopyrightZ buttonCreditsZidle_vZ idle_button_fZ idle_about_bZ idle_news_bZidle_credits_brrrr(sˆ ! ( . .' )( ("      '("      zAboutDialog.CreateWidgetscCs|jdtƒdS)NzAbout - License)Údisplay_printer_textZlicense)rrrrr2sszAboutDialog.ShowLicensecCs|jdtƒdS)NzAbout - Copyright)r8Ú copyright)rrrrr3vszAboutDialog.ShowCopyrightcCs|jdtƒdS)NzAbout - Python Credits)r8Zcredits)rrrrr4yszAboutDialog.ShowPythonCreditscCs|jdddƒdS)NzAbout - Creditsz CREDITS.txtz iso-8859-1)Údisplay_file_text)rrrrr7|szAboutDialog.ShowIDLECreditscCs|jddƒdS)NzAbout - Readmez README.txt)r:)rrrrr5szAboutDialog.ShowIDLEAboutcCs|jddƒdS)Nz About - NEWSzNEWS.txt)r:)rrrrr6‚szAboutDialog.ShowIDLENEWScCs3|jƒdj|jƒ}tj|||ƒdS)Nr!)Z_Printer__setupÚjoinZ_Printer__linesrZ view_text)rrZprinterrrrrr8…s z AboutDialog.display_printer_textNcCsGtjjtjjtjjtƒƒ|ƒ}tj||||ƒdS)N)ÚosÚpathr;ÚabspathÚdirnameÚ__file__rZ view_file)rrÚfilenameÚencodingÚfnrrrr:Šs-zAboutDialog.display_file_textcCs|jƒdS)N)Zdestroy)rZeventrrrrŽszAboutDialog.Ok)Ú__name__Ú __module__Ú __qualname__Ú__doc__r rr2r3r4r7r5r6r8r:rrrrrr s  K       rÚ__main__)Úrun) rGZtkinterr<r.Zidlelibrrr rrDZidlelib.idle_test.htestrIrrrrÚs   …