Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.9/idlelib/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.9/idlelib/__pycache__/help_about.cpython-39.pyc

a

��g|#�@s�dZddlZddlZddlZddlmZmZddlmZm	Z	m
Z
mZmZddlm
Z
mZmZmZmZmZmZmZmZmZddlmZe�Zdd�ZGd	d
�d
e�Zedkr�ddlmZed
ddd�ddlm Z e e�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.�darwinlZ64Z32rN�)�sys�platform�maxsizer�rr�./usr/local/lib/python3.9/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�t�||�|jdd�|�d|��d|��|s6dndf�d|_d|_|��|j	ddd	�|�
|p~d
t�dt��d��|�
|�|��|�d
|j�||_|j��|�d|j�|�d|j�d|_||_|s�|��|��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�title�versionrZ	transientZgrab_set�protocol�ok�parent�	button_okZ	focus_set�bind�_current_textviewrZ	deiconifyZwait_window)�selfr-r)rrrrrr%s2
��

zAboutDialog.__init__cs�t|dtd�}t|�}|jttd�|jtdtd�t|d|jd�|_	|j	jddd	�t||j
d
�}|jdtd�t|d|j|j
d
d�}|j
ddtddd�|j�dd�}|dkr�dnd}tj�tj�tj�t��dd|���}t|��|d�|_t||j|j
d�}|j
ddtdddd�d}	t||	t|j|j
d�}
|
j
ddtdddd�t|d t|j|j
d�}|j
d!ddtddd"�t|d#tdt�d$���d%�t|j|j
d���j
d&ddtddd"���d'�fd(d)��t|d*td|j
d+�j
d,dtdddd�t|d-t|j|j
d.�}|j
d/dtddd�t|d0||j|j
d.�}
|
j
d/d*tddd�t||j
d
�}|j
dddt d1�t|d2d,|j
|j!d3�|_"|j"jtddd4�t|d5d,|j
|j#d3�|_$|j$jtddd4�t|d6d,|j
|j%d3�|_&|j&jtddd4�t|d*td|j
d+�j
d7dtdddd�t|d8t|j|j
d.�}|j
d9dtddd�t||j
d
�}|j
d:ddt d1�t|d;d,|j
|j'd3�|_(|j(jtddd4�t|d<d,|j
|j)d3�|_*|j*jtddd4�t|d6d,|j
|j+d3�|_,|j,jtddd4�dS)=Nr)r �relief)�side�fillT)r3�expandr4�Close)�text�commandr)�padx�pady)r&)r5r4ZIDLE)Zcourier�Zbold)r7r'r&Zfontr�
)�row�column�stickyr9r:�infoZ
patchlevelz8.6z.pngz.gifZIconsZidle_48)Zmaster�file)Zimager&)r=r>r?Zrowspanr9r:z=Python's Integrated Development
and Learning Environment




)r7Zjustifyr'r&�)r=r>r?�
columnspanr9r:zemail:  idle-dev@python.org�)r=r>rCr?r9r:zhttps://docs.python.org/�.z/library/idle.html�z
<Button-1>cst��d�S)Nr7)�
webbrowser�open)�event�Zdocsrr�<lambda>b�z,AboutDialog.create_widgets.<locals>.<lambda>�)r r2r#r&�zPython version:  )r7r'r&�	z
Tk version:  )r=r>rCr?ZLicense)r7r$Zhighlightbackgroundr8)r3r9r:Z	CopyrightZCredits�zIDLE version:   ��
ZREADMEZNEWS)-rr	�packrr
r
rrr,r.r&rr'ZgridrZtk�call�os�path�join�abspath�dirname�__file__r�_rootZ
icon_imagerrr*�rindexr/rr�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)r1�frameZ
frame_buttonsZframe_background�headerZ
tk_patchlevel�extZiconZlogoZbyline_textZbylineZemailZpyverZtkverZ
py_buttonsZidleverZidle_buttonsrrJrr(?s��
�
��
��
����
����������zAboutDialog.create_widgetscCs|�dt�dS)zHandle License button event.zAbout - LicenseN)�display_printer_text�license�r1rrrr]�szAboutDialog.show_py_licensecCs|�dt�dS)zHandle Copyright button event.zAbout - CopyrightN)rf�	copyrightrhrrrr^�szAboutDialog.show_py_copyrightcCs|�dt�dS)z#Handle Python Credits button event.zAbout - Python CreditsN)rf�creditsrhrrrr_�szAboutDialog.show_py_creditscCs|�ddd�dS)z!Handle Idle Credits button event.zAbout - CreditszCREDITS.txt�utf-8N��display_file_textrhrrrrb�szAboutDialog.show_idle_creditscCs|�ddd�dS)zHandle Readme button event.zAbout - Readmez
README.txt�asciiNrlrhrrrr`�szAboutDialog.show_readmecCs|�ddd�dS)zHandle News button event.zAbout - NEWSzNEWS.txtrkNrlrhrrrra�szAboutDialog.show_idle_newscCs.|��d�|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.
        �
�rN)�_Printer__setuprW�_Printer__linesrZ	view_textrr0)r1r)Zprinterr7rrrrf�s

�z AboutDialog.display_printer_textcCs:tj�tj�tj�t��|�}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.
        rpN)
rUrVrWrXrYrZrZ	view_filerr0)r1r)�filename�encoding�fnrrrrm�s�zAboutDialog.display_file_textcCs|��|��dS)zDismiss help_about dialog.N)Zgrab_releaseZdestroy)r1rIrrrr,�szAboutDialog.ok)N)N)N)�__name__�
__module__�__qualname__�__doc__r%r(r]r^r_rbr`rarfrmr,rrrrrs"W
r�__main__)�mainz!idlelib.idle_test.test_help_aboutrF)�	verbosity�exit)�run)!ryrUrrGrrr�tkinterrrrrrr	r
rrr
rrrrrZidlelibrr*rrrvZunittestr{Zidlelib.idle_test.htestr~rrrr�<module>s 06

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists