Your IP : 18.218.63.176


Current Path : /opt/alt/python35/lib64/python3.5/idlelib/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/idlelib/__pycache__/aboutDialog.cpython-35.opt-1.pyc



��YfK�@s�dZddlZddlmZddlTddlmZGdd�de�Ze	dkr�ddl
Z
e
jd	d
ddd
�ddlm
Z
e
e�dS)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/python35/lib64/python3.5/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�WZLEFTZEWZtkZcallZNSEW�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)rrrrr0sszAboutDialog.ShowLicensecCs|jdt�dS)NzAbout - Copyright)r7�	copyright)rrrrr1vszAboutDialog.ShowCopyrightcCs|jdt�dS)NzAbout - Python Credits)r7�credits)rrrrr2yszAboutDialog.ShowPythonCreditscCs|jddd�dS)NzAbout - CreditszCREDITS.txtzutf-8)�display_file_text)rrrrr5~szAboutDialog.ShowIDLECreditscCs|jddd�dS)NzAbout - Readmez
README.txt�ascii)r;)rrrrr3�szAboutDialog.ShowIDLEAboutcCs|jddd�dS)NzAbout - NEWSzNEWS.txtzutf-8)r;)rrrrr4�szAboutDialog.ShowIDLENEWScCs3|j�dj|j�}tj|||�dS)Nr")�_Printer__setup�join�_Printer__linesrZ	view_text)rrZprinterrrrrr7�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
rr0r1r2r5r3r4r7r;rrrrrr
sMr�__main__z idlelib.idle_test.test_helpabout�	verbosityr�exitF)�run)rKr@�sysrZtkinterZidlelibrrrrHZunittest�mainZidlelib.idle_test.htestrOrrrr�<module>s
�

?>