HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/idlelib/__pycache__/help_about.cpython-310.pyc
o

�i�#�@s�dZddlZddlZddlZddlmZmZddlmZm	Z	m
Z
mZmZddlm
Z
mZmZmZmZmZmZmZmZmZddlmZe�Zdd�ZGd	d
�d
e�ZedkrnddlmZed
ddd�ddlm Z e e�dSdS)zAbout Dialog for IDLE

�N)�python_version�architecture)�Toplevel�Frame�Label�Button�
PhotoImage)
�SUNKEN�TOP�BOTTOM�LEFT�X�BOTH�W�EW�NSEW�E)�textviewcCs.tjdkrtjdkrdSdSt�ddd�S)zReturn bits for platform.�darwinlZ64Z32rN�)�sys�platform�maxsizer�rr�//usr/local/lib/python3.10/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|��|sdndf�d|_d|_|��|j	ddd	�|�
|p?d
t�dt��d��|�
|�|��|�d
|j�||_|j��|�d|j�|�d|j�d|_||_|sy|��|��dSdS)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%s4
��

�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"�d#tjdd�}t||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|d.||j|j
d,�}|j
d-d(tddd�t||j
d
�}|j
dddt!d/�t|d0d*|j
|j"d1�|_#|j#jtddd2�t|d3d*|j
|j$d1�|_%|j%jtddd2�t|d4d*|j
|j&d1�|_'|j'jtddd2�t|d(td|j
d)�j
d5dtdddd�t|d6t |j|j
d,�}|j
d7dtddd�t||j
d
�}|j
d8ddt!d/�t|d9d*|j
|j(d1�|_)|j)jtddd2�t|d:d*|j
|j*d1�|_+|j+jtddd2�t|d4d*|j
|j,d1�|_-|j-jtddd2�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:z/https://docs.python.org/%d.%d/library/idle.html�z
<Button-1>cst��d�S)Nr7)�
webbrowser�open)�event�Zdocsrr�<lambda>csz,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�version_infor/rr*r�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_textZbylineZemailZdocs_urlZpyverZtkverZ
py_buttonsZidleverZidle_buttonsrrIrr(?s��
�
��
��
����
����������zAboutDialog.create_widgetscC�|�dt�dS)zHandle License button event.zAbout - LicenseN)�display_printer_text�license�r1rrrr[��zAboutDialog.show_py_licensecCrd)zHandle Copyright button event.zAbout - CopyrightN)re�	copyrightrgrrrr\�rhzAboutDialog.show_py_copyrightcCrd)z#Handle Python Credits button event.zAbout - Python CreditsN)re�creditsrgrrrr]�rhzAboutDialog.show_py_creditscC�|�ddd�dS)z!Handle Idle Credits button event.zAbout - CreditszCREDITS.txt�utf-8N��display_file_textrgrrrr`��zAboutDialog.show_idle_creditscCrk)zHandle Readme button event.zAbout - Readmez
README.txt�asciiNrmrgrrrr^�rozAboutDialog.show_readmecCrk)zHandle News button event.zAbout - NEWSzNEWS.txtrlNrmrgrrrr_�rozAboutDialog.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__setuprU�_Printer__linesrZ	view_textrr0)r1r)Zprinterr7rrrre�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.
        rrN)
rSrTrUrVrWrXrZ	view_filerr0)r1r)�filename�encoding�fnrrrrn�s�zAboutDialog.display_file_textcCs|��|��dS)zDismiss help_about dialog.N)Zgrab_releaseZdestroy)r1rHrrrr,�szAboutDialog.ok)N)�__name__�
__module__�__qualname__�__doc__r%r(r[r\r]r`r^r_rernr,rrrrrs"X

r�__main__)�mainz!idlelib.idle_test.test_help_aboutrF)�	verbosity�exit)�run)!r{rSrrFrrr�tkinterrrrrrr	r
rrr
rrrrrZidlelibrr*rrrxZunittestr}Zidlelib.idle_test.htestr�rrrr�<module>s$07�