ok

Mini Shell

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

3

*j�a#�@s�dZddlZddlZddlmZmZddlmZmZm	Z	m
Z
mZddlmZm
Z
mZmZmZmZmZmZmZmZddlmZdd�ZGd	d
�d
e�Zedkr�ddlmZed
ddd�ddlmZee�dS)zAbout Dialog for IDLE

�N)�python_version�architecture)�Toplevel�Frame�Label�Button�
PhotoImage)
�SUNKEN�TOP�BOTTOM�LEFT�X�BOTH�W�EW�NSEW�E)�textviewcCs2tjdkrtjdkrdSdSt�ddd�SdS)	zReturn bits for platform.�darwin�� Z64Z32rNl)�sys�platform�maxsizer�rr�7/opt/alt/python36/lib64/python3.6/idlelib/help_about.py�
build_bitss
rc@sveZdZdZdddd�dd�Zdd�Zd	d
�Zdd�Zd
d�Zdd�Z	dd�Z
dd�Zdd�Zddd�Z
ddd�ZdS)�AboutDialogz!Modal about dialog for idle

    NF)�_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)aCreate popup, do not return until tk widget destroyed.

        parent - parent of this dialog
        title - string which is title of popup dialog
        _htest - bool, change box location when running htest
        _utest - bool, don't wait_window when running unittest
        �)�borderwidthz+%d+%d��dz#bbbbbbz#000000F)�height�widthzAbout IDLE z (z bit)ZWM_DELETE_WINDOWz<Return>z<Escape>N)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	Zpackrr
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)zHandle License button event.zAbout - LicenseN)�display_printer_text�license)r/rrrrR�szAboutDialog.show_py_licensecCs|jdt�dS)zHandle Copyright button event.zAbout - CopyrightN)rZ�	copyright)r/rrrrS�szAboutDialog.show_py_copyrightcCs|jdt�dS)z#Handle Python Credits button event.zAbout - Python CreditsN)rZ�credits)r/rrrrT�szAboutDialog.show_py_creditscCs|jddd�dS)z!Handle Idle Credits button event.zAbout - CreditszCREDITS.txtzutf-8N)�display_file_text)r/rrrrW�szAboutDialog.show_idle_creditscCs|jddd�dS)zHandle Readme button event.zAbout - Readmez
README.txt�asciiN)r^)r/rrrrU�szAboutDialog.show_readmecCs|jddd�dS)zHandle News button event.zAbout - NEWSzNEWS.txtzutf-8N)r^)r/rrrrV�szAboutDialog.show_idle_newscCs.|j�dj|j�}tj||||jd�|_dS)aCreate textview for built-in constants.

        Built-in constants have type _sitebuiltins._Printer.  The
        text is extracted from the built-in and then sent to a text
        viewer with self as the parent and title as the title of
        the popup.
        rA)rN)�_Printer__setuprN�_Printer__linesrZ	view_textrr.)r/r*Zprinterr4rrrrZ�sz AboutDialog.display_printer_textcCs:tjjtjjtjjt��|�}tj|||||jd�|_	dS)z�Create textview for filename.

        The filename needs to be in the current directory.  The path
        is sent to a text viewer with self as the parent, title as
        the title of the popup, and the file encoding.
        )rN)
rLrMrNrOrPrQrZ	view_filerr.)r/r*�filename�encoding�fnrrrr^�szAboutDialog.display_file_textcCs|j�|j�dS)zDismiss help_about dialog.N)Zgrab_releaseZdestroy)r/Zeventrrrr+�szAboutDialog.ok)N)N)N)�__name__�
__module__�__qualname__�__doc__r&r)rRrSrTrWrUrVrZr^r+rrrrrs"V
r�__main__)�mainz!idlelib.idle_test.test_help_aboutrF)�	verbosity�exit)�run)rhrLrrrrZtkinterrrrrrr	r
rrr
rrrrrZidlelibrrrreZunittestrjZidlelib.idle_test.htestrmrrrr�<module>s05

Zerion Mini Shell 1.0