Your IP : 3.144.4.50


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-2.pyc



���]K�@s�ddlZddlmZddlTddlmZGdd�de�Zedkr�ddl	Z	e	j
dd	d
dd�dd
lmZee�dS)�N)�version)�*)�textViewc@s�eZdZddd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Z	dd�Z
dd�Zddd�Zddd�Z
dS)�AboutDialogFcCs
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�dS)
N�borderwidth�z+%d+%d��dz#707070z#ffffff�height�widthZWM_DELETE_WINDOWz<Return>z<Escape>)�Toplevel�__init__Z	configureZgeometryZwinfo_rootxZwinfo_rooty�bg�fg�
CreateWidgetsZ	resizable�FALSE�titleZ	transientZgrab_set�protocol�Ok�parent�buttonOkZ	focus_set�bindZwait_window)�selfrrZ_htest�r�0/opt/alt/python35/lib64/python3.5/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�ZreliefZside�fill�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)r r!r"z




)r�indexZFrameZSUNKEN�packZBOTTOM�XZTOP�TRUEZBOTHZButtonrrrZLabelrZgrid�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)rrrrr7sszAboutDialog.ShowLicensecCs|jdt�dS)NzAbout - Copyright)r>�	copyright)rrrrr8vszAboutDialog.ShowCopyrightcCs|jdt�dS)NzAbout - Python Credits)r>�credits)rrrrr9yszAboutDialog.ShowPythonCreditscCs|jddd�dS)NzAbout - CreditszCREDITS.txtzutf-8)�display_file_text)rrrrr<~szAboutDialog.ShowIDLECreditscCs|jddd�dS)NzAbout - Readmez
README.txt�ascii)rB)rrrrr:�szAboutDialog.ShowIDLEAboutcCs|jddd�dS)NzAbout - NEWSzNEWS.txtzutf-8)rB)rrrrr;�szAboutDialog.ShowIDLENEWScCs3|j�dj|j�}tj|||�dS)Nr&)�_Printer__setup�join�_Printer__linesrZ	view_text)rrZprinterrrrrr>�s
z AboutDialog.display_printer_textNcCsGtjjtjjtjjt��|�}tj||||�dS)N)�os�pathrE�abspath�dirname�__file__rZ	view_file)rr�filename�encoding�fnrrrrB�s-zAboutDialog.display_file_textcCs|j�dS)N)Zdestroy)r�eventrrrr�szAboutDialog.Ok)�__name__�
__module__�__qualname__r
rr7r8r9r<r:r;r>rBrrrrrr
sMr�__main__z idlelib.idle_test.test_helpabout�	verbosityr�exitF)�run)
rG�sysr�tkinterZidlelibrrrrPZunittest�mainZidlelib.idle_test.htestrVrrrr�<module>s
�

?>