Your IP : 18.221.248.140


Current Path : /opt/alt/python34/lib64/python3.4/idlelib/__pycache__/
Upload File :
Current File : //opt/alt/python34/lib64/python3.4/idlelib/__pycache__/aboutDialog.cpython-34.pyc

�
e f �@sdZddlZddlmZddlTddlmZGdd�de�Ze	dkr{dd	l
mZee�ndS)
zAbout Dialog for IDLE

�N)�version)�*)�textViewc@s�eZdZdZddd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�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_WINDOWz<Return>z<Escape>N)�Toplevel�__init__Z	configureZgeometryZwinfo_rootxZwinfo_rooty�bg�fg�
CreateWidgetsZ	resizableZFALSE�titleZ	transientZgrab_setZprotocol�Ok�parent�buttonOkZ	focus_setZbindZwait_window)�selfrrZ_htest�r�8/opt/alt/python34/lib64/python3.4/idlelib/aboutDialog.pyr
s$	
!		



	
zAboutDialog.__init__c
Cstdtjd��}t|dddt�}t|�}|jdtdt�|jdtdtdt	�t
|dd	d
|j�|_|jjddd
d�t|d|j
�}|jdtdt	�t|ddd|jd|j
dd7�}|jdddddtddd
d�dd8}t|d|dtd|jd|j
�}|jdddddtddddd
d�t|dddtd|jd|j
�}|jdd dddddtddd
d�t|dd!tdd�d"dtd|jd|j
�}	|	jdd#dddddtddd
d�t|dd$dtd%dd|j
�jdd&dddtddddd
d�t|dd'|d|jd|j
�}
|
jdd(dddtddd
d�|jjd)d*�}t|dd+|d|jd|j
�}|jdd(dd$dtddd
d�t|d|j
�}
|
jdddddddt�t
|
dd,d-d&d.|j
d
|j�}|jdtddd
d�t
|
dd/d-d&d.|j
d
|j�}|jdtddd
d�t
|
dd0d-d&d.|j
d
|j�}|jdtddd
d�t|dd$dtd%dd|j
�jdd1dddtddddd
d�t|dd2|d|jd|j
�}|jdd3dddtddd
d�t|d|j
�}|jdd4dddddt�t
|dd5d-d&d.|j
d
|j�}|jdtddd
d�t
|dd6d-d&d.|j
d
|j�}|jdtddd
d�t
|dd0d-d&d.|j
d
|j�}|jdtddd
d�dS)9N� r�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:  ZLicenserZhighlightbackgroundZ	CopyrightZCredits�zIDLE version:   ��
ZREADMEZNEWS)rrrz




)r�indexZFrameZSUNKENZpackZBOTTOM�XZTOPZTRUEZBOTHZButtonrrrZLabelrZgrid�WZLEFTZEWZtk�callZNSEW�ShowLicense�
ShowCopyright�ShowPythonCredits�
ShowIDLEAbout�ShowIDLENEWS�ShowIDLECredits)r�releaseZ	frameMainZframeButtonsZframeBgZ
labelTitleZbylineZ	labelDescZ
labelEmailZlabelWWWZlabelPythonVerZtkVerZ
labelTkVerZpy_button_fZ
buttonLicenseZbuttonCopyrightZ
buttonCreditsZidle_vZ
idle_button_fZidle_about_bZidle_news_bZidle_credits_brrrr&s�!	(
.	.'(("			'("			zAboutDialog.CreateWidgetscCs|jdt�dS)NzAbout - License)�display_printer_text�license)rrrrr1rszAboutDialog.ShowLicensecCs|jdt�dS)NzAbout - Copyright)r8�	copyright)rrrrr2uszAboutDialog.ShowCopyrightcCs|jdt�dS)NzAbout - Python Credits)r8�credits)rrrrr3xszAboutDialog.ShowPythonCreditscCs|jddd�dS)NzAbout - CreditszCREDITS.txtz
iso-8859-1)�display_file_text)rrrrr6{szAboutDialog.ShowIDLECreditscCs|jdd�dS)NzAbout - Readmez
README.txt)r<)rrrrr4~szAboutDialog.ShowIDLEAboutcCs|jdd�dS)NzAbout - NEWSzNEWS.txt)r<)rrrrr5�szAboutDialog.ShowIDLENEWScCs3|j�dj|j�}tj|||�dS)Nr")�_Printer__setup�join�_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
rr1r2r3r6r4r5r8r<rrrrrr
sLr�__main__)�run)rKr@�sysrZtkinterZidlelibrrrrHZidlelib.idle_test.htestrMrrrr�<module>s
�

?>