e f @sdZddlZddlmZddlTddlmZGdddeZe dkr{dd l m Z e endS) zAbout Dialog for IDLE N)version)*)textViewc@seZdZdZdddZddZddZd d Zd d Zd dZ ddZ ddZ ddZ dddZ dddZdS) AboutDialogz!Modal about dialog for idle FcCs tj|||jdd|jd|jd|j|sKdndfd|_d|_|j|j dt d t |j ||j ||j |jd |j||_|jj|jd |j|jd |j|jd S)zG _htest - bool, change box location when running htest borderwidthz+%d+%ddz#707070z#ffffffheightwidthZWM_DELETE_WINDOWzzN)Toplevel__init__Z configureZgeometryZ winfo_rootxZ winfo_rootybgfg CreateWidgetsZ resizableZFALSEtitleZ transientZgrab_setZprotocolOkparentbuttonOkZ focus_setZbindZ wait_window)selfrrZ_htestr8/opt/alt/python34/lib64/python3.4/idlelib/aboutDialog.pyr s$  !        zAboutDialog.__init__c Cstdtjd}t|dddt}t|}|jdtdt|jdtdtdt t |dd d |j |_ |j jd d d d t|d|j }|jdtdt t|ddd|jd|j dd7}|jdddddtd dd ddd8}t|d|dtd|jd|j }|jdddddtddd dd d t|dddtd|jd|j }|jdd dddddtd dd dt|dd!tddd"dtd|jd|j } | jdd#dddddtd dd dt|dd$dtd%dd|j jdd&dddtddd d d d t|dd'|d|jd|j } | jdd(dddtd dd d|jjd)d*} t|dd+| d|jd|j } | jdd(dd$dtd dd dt|d|j } | jdddddddtt | dd,d-d&d.|j d |j}|jdtd dd dt | dd/d-d&d.|j d |j}|jdtd dd dt | dd0d-d&d.|j d |j}|jdtd dd dt|dd$dtd%dd|j jdd1dddtddd d d d t|dd2|d|jd|j }|jdd3dddtd dd dt|d|j }|jdd4dddddtt |dd5d-d&d.|j d |j}|jdtd dd dt |dd6d-d&d.|j d |j}|jdtd dd dt |dd0d-d&d.|j d |j}|jdtd dd ddS)9N rZreliefZsideZfillexpandtextZCloseZcommandZpadxrZpadyrZIDLErZfontcourierboldrowrcolumnZsticky z+Python's Integrated DeveLopment Environment ZjustifyZ columnspanzemail: idle-dev@python.orgzhttps://docs.python.org/z/library/idle.htmlr zPython version: infoZ patchlevelz Tk version: ZLicenser ZhighlightbackgroundZ CopyrightZCredits zIDLE version: ZREADMEZNEWS)rrrz )rindexZFrameZSUNKENZpackZBOTTOMXZTOPZTRUEZBOTHZButtonrrrZLabelrZgridWZLEFTZEWZtkcallZNSEW ShowLicense ShowCopyrightShowPythonCredits ShowIDLEAbout ShowIDLENEWSShowIDLECredits)rreleaseZ 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|jdtdS)NzAbout - License)display_printer_textlicense)rrrrr1rszAboutDialog.ShowLicensecCs|jdtdS)NzAbout - Copyright)r8 copyright)rrrrr2uszAboutDialog.ShowCopyrightcCs|jdtdS)NzAbout - Python Credits)r8credits)rrrrr3xszAboutDialog.ShowPythonCreditscCs|jddddS)NzAbout - Creditsz CREDITS.txtz iso-8859-1)display_file_text)rrrrr6{szAboutDialog.ShowIDLECreditscCs|jdddS)NzAbout - Readmez README.txt)r<)rrrrr4~szAboutDialog.ShowIDLEAboutcCs|jdddS)Nz About - NEWSzNEWS.txt)r<)rrrrr5szAboutDialog.ShowIDLENEWScCs3|jdj|j}tj|||dS)Nr")_Printer__setupjoin_Printer__linesrZ view_text)rrZprinterrrrrr8s z AboutDialog.display_printer_textNcCsGtjjtjjtjjt|}tj||||dS)N)ospathr>abspathdirname__file__rZ view_file)rrfilenameencodingfnrrrr<s-zAboutDialog.display_file_textcCs|jdS)N)Zdestroy)rZeventrrrrszAboutDialog.Ok)__name__ __module__ __qualname____doc__r rr1r2r3r6r4r5r8r<rrrrrr s  L       r__main__)run) rKr@sysrZtkinterZidlelibrr rrHZidlelib.idle_test.htestrMrrrrs