Your IP : 18.222.184.207


Current Path : /opt/alt/python36/lib64/python3.6/idlelib/__pycache__/
Upload File :
Current File : //opt/alt/python36/lib64/python3.6/idlelib/__pycache__/help_about.cpython-36.opt-2.pyc

3

��2a#�@s�ddlZddlZddlmZmZddlmZmZmZm	Z	m
Z
ddlmZmZm
Z
mZmZmZmZmZmZmZddlmZdd�ZGdd	�d	e�Zed
kr�ddlmZedd
dd�ddlmZee�dS)�N)�python_version�architecture)�Toplevel�Frame�Label�Button�
PhotoImage)
�SUNKEN�TOP�BOTTOM�LEFT�X�BOTH�W�EW�NSEW�E)�textviewcCs2tjdkrtjdkrdSdSt�ddd�SdS)N�darwin�� Z64Z32rl)�sys�platform�maxsizer�rr�//opt/alt/python36/lib64/python3.6/help_about.py�
build_bitss
rc@sreZdZdddd�dd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Zdd�Z	dd�Z
dd�Zddd�Zddd�Z
dS)�AboutDialogNF)�_htest�_utestcCs�tj||�|jdd�|jd|j�d|j�|s6dndf�d|_d|_|j�|j	ddd	�|j
|p�d
t��dt��d��|j
|�|j�|jd
|j�||_|jj�|jd|j�|jd|j�d|_||_|s�|j�|j�dS)N�)�borderwidthz+%d+%d��dz#bbbbbbz#000000F)�height�widthzAbout IDLE z (z bit)ZWM_DELETE_WINDOWz<Return>z<Escape>)r�__init__Z	configureZgeometryZwinfo_rootxZwinfo_rooty�bg�fg�create_widgetsZ	resizable�titlerrZ	transientZgrab_setZprotocol�ok�parent�	button_okZ	focus_setZbind�_current_textviewrZ	deiconifyZwait_window)�selfr,r*rrrrrr&s.


zAboutDialog.__init__cCs�t|dtd�}t|�}|jttd�|jtdtd�t|d|jd�|_	|j	jddd	�t||j
d
�}|jdtd�t|d|j|j
d<d�}|j
ddtddd�|jjdd�}|dkr�dnd}tjjtjjtjjt��dd|���}t|j�|d�|_t||j|j
d�}|j
ddtdddd�d>}	t||	t|j|j
d �}
|
j
ddtd!ddd"�t|d#t|j|j
d �}|j
d$ddtddd%�t|d&t�dd!�d't|j|j
d �}|j
d(ddtddd%�t|d)td|j
d*�j
d+dtd!ddd"�t|d,t�|j|j
d-�}
|
j
d.dtddd�t|d/||j|j
d-�}|j
d.d)tddd�t||j
d
�}|j
dddtd0�t|d1d+|j
|jd2�|_ |j jtddd3�t|d4d+|j
|j!d2�|_"|j"jtddd3�t|d5d+|j
|j#d2�|_$|j$jtddd3�t|d)td|j
d*�j
d6dtd!ddd"�t|d7t�|j|j
d-�}|j
d8dtddd�t||j
d
�}|j
d9dd!td0�t|d:d+|j
|j%d2�|_&|j&jtddd3�t|d;d+|j
|j'd2�|_(|j(jtddd3�t|d5d+|j
|j)d2�|_*|j*jtddd3�dS)?Nr)r!�relief)�side�fillT)r1�expandr2ZClose)�text�commandr )�padx�pady)r')r3r2ZIDLE�courier��bold)r4r(r'Zfontr�
)�row�column�stickyr6r7�infoZ
patchlevelz8.6z.pngz.gifZIconsZidle_48)Zmaster�file)Zimager')r<r=r>Zrowspanr6r7z8Python's Integrated Development
and Learning Environment�
)r4Zjustifyr(r'�)r<r=r>�
columnspanr6r7zemail:  idle-dev@python.org�)r<r=rCr>r6r7zhttps://docs.python.org/z/library/idle.html��)r!r0r$r'�zPython version:  )r4r(r'�	z
Tk version:  )r<r=rCr>ZLicense)r4r%Zhighlightbackgroundr5)r1r6r7Z	CopyrightZCredits�zIDLE version:   ��
ZREADMEZNEWS)r8r9r:z




z=Python's Integrated Development
and Learning Environment




)+rr	�packrr
r
rrr+r-r'rr(ZgridrZtkZcall�os�path�join�abspath�dirname�__file__rZ_rootZ
icon_imagerrrrr�show_py_licenseZ
py_license�show_py_copyrightZpy_copyright�show_py_creditsZ
py_credits�show_readmeZreadme�show_idle_newsZ	idle_news�show_idle_creditsZidle_credits)r/�frameZ
frame_buttonsZframe_background�headerZ
tk_patchlevelZextZiconZlogoZbyline_textZbylineZemailZdocsZpyverZtkverZ
py_buttonsZidleverZidle_buttonsrrrr)<s�

zAboutDialog.create_widgetscCs|jdt�dS)NzAbout - License)�display_printer_text�license)r/rrrrS�szAboutDialog.show_py_licensecCs|jdt�dS)NzAbout - Copyright)r[�	copyright)r/rrrrT�szAboutDialog.show_py_copyrightcCs|jdt�dS)NzAbout - Python Credits)r[�credits)r/rrrrU�szAboutDialog.show_py_creditscCs|jddd�dS)NzAbout - CreditszCREDITS.txtzutf-8)�display_file_text)r/rrrrX�szAboutDialog.show_idle_creditscCs|jddd�dS)NzAbout - Readmez
README.txt�ascii)r_)r/rrrrV�szAboutDialog.show_readmecCs|jddd�dS)NzAbout - NEWSzNEWS.txtzutf-8)r_)r/rrrrW�szAboutDialog.show_idle_newscCs.|j�dj|j�}tj||||jd�|_dS)NrA)r)�_Printer__setuprO�_Printer__linesrZ	view_textrr.)r/r*Zprinterr4rrrr[�sz AboutDialog.display_printer_textcCs:tjjtjjtjjt��|�}tj|||||jd�|_	dS)N)r)
rMrNrOrPrQrRrZ	view_filerr.)r/r*�filename�encoding�fnrrrr_�szAboutDialog.display_file_textcCs|j�|j�dS)N)Zgrab_releaseZdestroy)r/Zeventrrrr+�szAboutDialog.ok)N)N)N)�__name__�
__module__�__qualname__r&r)rSrTrUrXrVrWr[r_r+rrrrrs"V
r�__main__)�mainz!idlelib.idle_test.test_help_aboutrF)�	verbosity�exit)�run)rMrrrrZtkinterrrrrrr	r
rrr
rrrrrZidlelibrrrrfZunittestrjZidlelib.idle_test.htestrmrrrr�<module>s05

?>