HEX
Server: Apache
System: Linux bd12.noc223.com 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: handcraf (1693)
PHP: 8.1.28
Disabled: NONE
Upload Files
File: //opt/alt/python312/lib64/python3.12/idlelib/__pycache__/help_about.cpython-312.pyc
�

}h�e�"��V�dZddlZddlZddlZddlmZmZddlmZm	Z	m
Z
mZmZddlm
Z
mZmZmZmZmZmZmZmZmZddlmZe�Zejdk(rej4dkDrd	nd
Zn
e�dddZGd�d
e�Zedk(r ddlmZeddd��ddl m!Z!e!e�yy)zAbout Dialog for IDLE

�N)�python_version�architecture)�Toplevel�Frame�Label�Button�
PhotoImage)
�SUNKEN�TOP�BOTTOM�LEFT�X�BOTH�W�EW�NSEW�E)�textview�darwinl�64�32�c�`�eZdZdZdddd�d�Zd�Zd�Zd�Zd	�Zd
�Z	d�Z
d�Zd
�Zdd�Z
dd�Zy)�AboutDialogz!Modal about dialog for idle

    NF)�_htest�_utestc��tj||�|jd��|jd|j	�dz|j�|sdndzfz�d|_d|_|j�|jdd�	�|j|xsd
t�dt�d��|j|�|j�|jd
|j �||_|j$j'�|j)d|j �|j)d|j �d|_||_|s!|j/�|j1�yy)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)�WM_DELETE_WINDOWz<Return>z<Escape>N)r�__init__�	configure�geometry�winfo_rootx�winfo_rooty�bg�fg�create_widgets�	resizable�title�pyver�bits�	transient�grab_set�protocol�ok�parent�	button_ok�	focus_set�bind�_current_textviewr�	deiconify�wait_window)�selfr5r.rrs     �9/opt/alt/python312/lib64/python3.12/idlelib/help_about.pyr%zAboutDialog.__init__sD��	���$��'����1��%��
�
�h��*�*�,�R�/��*�*�,��b�C�H�"J�J�	K��������������e�5��1��
�
�5�6� ���r�$��u�5�	7����v���
�
���
�
�(�$�'�'�2������� � �"��	�	�*�d�g�g�&��	�	�*�d�g�g�&�!%��������N�N�������c�.��t|dt��}t|�}|jtt��|jt
dt��t|d|j��|_	|jjdd�	�t||j�
�}|jdt��t|d|j|jd
��}|jddtdd��|j�j!d�}|dk\rdnd}t"j$j't"j$j)t"j$j+t,��dd|���}t/|j�|��|_t||j0|j��}|jddt2ddd��d}	t||	t4|j|j��}
|
jddt2ddd��t|dt4|j|j��}|jd ddt2dd�!�d"t6j8ddz}t||t4|j|j����jd#ddt2dd�!��j;d$�fd%��t|d&td|j�'�jd(dt<ddd��t?|jA��}
||
k7rd)|znd*}d+tB�d,|
�|��}t|||j|j�-�}|jd.dt2dd��t||j�
�}|jdddtD�/�t|d0d(|j|jF�1�|_$|jHjt4dd�2�t|d3d(|j|jJ�1�|_&|jLjt4dd�2�t|d4d(|j|jN�1�|_(|jPjt4dd�2�t|d&td|j�'�jd5dt<ddd��t|d|j|j�-�}|jd6dt2dd��t||j�
�}|jd7ddtD�/�t|d8d(|j|jR�1�|_*|jTjt4dd�2�t|d9d(|j|jV�1�|_,|jXjt4dd�2�t|d4d(|j|jZ�1�|_.|j\jt4dd�2�y):Nr)r�relief)�side�fillT)rA�expandrB�Close)�text�commandr)�padx�pady)r*)rCrB�IDLE)�courier��bold)rEr+r*�fontr�
)�row�column�stickyrGrH�
tk_patchLevelz8.6z.pngz.gif�Icons�idle_48)�master�file)�imager*)rOrPrQ�rowspanrGrHz=Python's Integrated Development
and Learning Environment




)rE�justifyr+r*�)rOrPrQ�
columnspanrGrHzemail:  idle-dev@python.org�)rOrPr[rQrGrHz/https://docs.python.org/%d.%d/library/idle.html�z
<Button-1>c�4��tj�d�S)NrE)�
webbrowser�open)�event�docss �r=�<lambda>z,AboutDialog.create_widgets.<locals>.<lambda>`s���j�o�o�d�6�l�.K�r>�)rr@r"r*�z and �zPython z
 with tcl/tk )rEr+r*�	)rOrPr[rQ�License)rEr#�highlightbackgroundrF)rArGrH�	Copyright�Credits���
�Readme�News)/rr
�packrrrrrr4r6r*rr+�gridr�_root�getvar�os�path�join�abspath�dirname�__file__r	�
icon_imagerr
�sys�version_infor8r�str�info_patchlevelr/r�show_py_license�
py_license�show_py_copyright�py_copyright�show_py_credits�
py_credits�show_readme�readme�show_idle_news�	idle_news�show_idle_credits�idle_credits)r<�frame�
frame_buttons�frame_background�header�tkpatch�ext�icon�logo�byline_text�byline�email�docs_url�tclver�tkver�versions�vers�
py_buttons�idle�idle_buttonsrbs                    @r=r,zAboutDialog.create_widgets<s	����d��&�9���d��
�����Q��/�
�
�
��D�t�
�4��
�G�(,���1�����������+� ��4�7�7�3�����T���5��'�f�����'�'�(?�A������!�A�B�R��@��*�*�,�%�%�o�6���5�(�f�f���w�w�|�|�B�G�G�O�O�B�G�G�O�O�H�,E�F�#�w�s�e�_�6��$�D�J�J�L�t�D����%�T�_�_����I���	�	�a��!�Q�R�b�	�I�Z���'�k�4��'�'�d�g�g�/������!�A�!�"�1��M��&�-J�"�t�w�w�4�7�7�<��
�
�
�q��q���!�
�L�E��$�$�R�a�(�)���%�H�!�d�g�g�$�'�'�;���	�	�a��a����	�K��	�	�,� K�L�
��A�f��4�7�7�	$�$(�D�Q�q��45�A�A�%)�%G��T�)�)�+�,��%,��%6��'�!�B���U�G�=�����@���%�H����T�W�W�M���	�	�a��!�"�1�	�=��+����8�
����B�q�Q�t��D� ��)�1�59�W�W�)-�)=�)=�?���	
�����$�R�b��9�"�:�K�q�7;�w�w�+/�+A�+A�C���	
�����D�r���;� ��)�1�59�W�W�)-�)=�)=�?���	
�����$�R�b��9�
��A�f��4�7�7�	$�$(�D�R��"�45�A�A�%)�%G��%�#��7�7�t�w�w�0��	
�	�	�b��1�2�A�	�>��-�$�'�'�:�����b��q���F��\���15���%)�%5�%5�7���	
�����d��"��5���6��48�G�G�(,�(;�(;�=���	
������B�R��8�"�<�i�q�7;�w�w�+/�+A�+A�C���	
�����D�r���;r>c�0�|jdt�y)zHandle License button event.zAbout - LicenseN)�display_printer_text�license�r<s r=r�zAboutDialog.show_py_license�s���!�!�"3�W�=r>c�0�|jdt�y)zHandle Copyright button event.zAbout - CopyrightN)r��	copyrightr�s r=r�zAboutDialog.show_py_copyright�s���!�!�"5�y�Ar>c�0�|jdt�y)z#Handle Python Credits button event.zAbout - Python CreditsN)r��creditsr�s r=r�zAboutDialog.show_py_credits�s���!�!�":�G�Dr>c�*�|jddd�y)z!Handle Idle Credits button event.zAbout - CreditszCREDITS.txt�utf-8N��display_file_textr�s r=r�zAboutDialog.show_idle_credits�s�����0�-��Ir>c�*�|jddd�y)zHandle Readme button event.zAbout - Readmez
README.txt�asciiNr�r�s r=r�zAboutDialog.show_readme�s�����/��w�Gr>c�*�|jddd�y)zHandle News button event.zAbout - Newsz	News3.txtr�Nr�r�s r=r�zAboutDialog.show_idle_news�s�����~�{�G�Dr>c��|j�dj|j�}tj||||j
��|_y)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__linesr�	view_textrr9)r<r.�printerrEs    r=r�z AboutDialog.display_printer_text�sD��	���!��y�y��0�0�1��!)�!3�!3��%��d�k�k�"3��r>c��tjjtjjtjj	t
��|�}t
j|||||j��|_	y)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.
        r�N)
rurvrwrxryrzr�	view_filerr9)r<r.�filename�encoding�fns     r=r�zAboutDialog.display_file_text�sT���W�W�\�\�"�'�'�/�/�"�'�'�/�/�(�*C�D�h�
O��!)�!3�!3��%��X�d�k�k�";��r>c�D�|j�|j�y)zDismiss help_about dialog.N)�grab_release�destroy)r<ras  r=r4zAboutDialog.ok�s���������r>)N)�__name__�
__module__�__qualname__�__doc__r%r,r�r�r�r�r�r�r�r�r4�r>r=rrsO��� �U�5� �DS<�l>�B�E�J�H�E�3�	;�r>r�__main__)�mainz!idlelib.idle_test.test_help_aboutF)�	verbosity�exit)�run)"r�rur|r_�platformrr�tkinterrrrrr	r
rrr
rrrrrr�idlelibrr/�maxsizer0rr��unittestr��idlelib.idle_test.htestr�r�r>r=�<module>r�s����
�
��1�>�>�F�F�F������<�<�8���;�;��&�4�D�D��>�!��R�a� �D�q�(�q�h�z����	,���F�+����r>