Sindbad~EG File Manager

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

�

RԚg�"��z�dZddlZddlZddlZddlmZmZddlmZm	Z	m
Z
mZmZddlm
Z
mZmZmZmZmZmZmZmZmZddlmZe��Zejdkrejdkrd	nd
Zne��ddd�ZGd�d
e��Zedkr'ddlmZeddd���ddl m!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)�textview�darwinl�64�32�c�b�eZdZdZdddd�d�Zd�Zd�Zd�Zd	�Zd
�Z	d�Z
d�Zd
�Zdd�Z
dd�ZdS)�AboutDialogz!Modal about dialog for idle

    NF)�_htest�_utestc�V�tj||��|�d���|�d|���dz|���|sdndzfz��d|_d|_|���|�	dd�	��|�
|pd
t�dt�d���|�
|��|���|�d
|j��||_|j���|�d|j��|�d|j��d|_||_|s*|���|���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)�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     �//usr/local/lib/python3.11/idlelib/help_about.pyr%zAboutDialog.__init__s���	��$��'�'�'����1��%�%�%��
�
�h��*�*�,�,�R�/��*�*�,�,��.G�b�b�C�H�"J�J�	K�	K�	K����������������e�5��1�1�1��
�
�5�6�5��5�5�$�5�5�5�	7�	7�	7����v�����
�
�����
�
�(�$�'�2�2�2������ � �"�"�"��	�	�*�d�g�&�&�&��	�	�*�d�g�&�&�&�!%�������	��N�N������������	�	�c�t��t|dt���}t|��}|�tt���|�t
dt���t|d|j���|_	|j	�dd�	��t||j
�
��}|�dt���t|d|j|j
d
���}|�
ddtdd���|����d��}|dkrdnd}t"j�t"j�t"j�t,����dd|����}t/|���|���|_t||j|j
���}|�
ddt2ddd���d}	t||	t4|j|j
���}
|
�
ddt2ddd���t|dt4|j|j
���}|�
d ddt2dd�!��d"t6jdd�z}t||t4|j|j
������
d#ddt2dd�!����d$�fd%���t|d&td|j
�'���
d(dt<ddd���t?|� ����}
||
krd)|znd*}d+tB�d,|
�|��}t|||j|j
�-��}|�
d.dt2dd���t||j
�
��}|�
dddtD�/��t|d0d(|j
|j#�1��|_$|j$�t4dd�2��t|d3d(|j
|j%�1��|_&|j&�t4dd�2��t|d4d(|j
|j'�1��|_(|j(�t4dd�2��t|d&td|j
�'���
d5dt<ddd���t|d|j|j
�-��}|�
d6dt2dd���t||j
�
��}|�
d7ddtD�/��t|d8d(|j
|j)�1��|_*|j*�t4dd�2��t|d9d(|j
|j+�1��|_,|j,�t4dd�2��t|d4d(|j
|j-�1��|_.|j.�t4dd�2��dS):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�8��tj�d��S)NrE)�
webbrowser�open)�event�docss �r=�<lambda>z,AboutDialog.create_widgets.<locals>.<lambda>`s���j�o�d�6�l�.K�.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<s0����d��&�9�9�9���d���
�����Q��/�/�/�
�
�
��D�t�
�4�4�4��
�G�(,��1�1�1����������+�+�+� ��4�7�3�3�3�����T���5�5�5��'�f����'�(?�A�A�A������!�A�B�R��@�@�@��*�*�,�,�%�%�o�6�6���5�(�(�f�f�f���w�|�|�B�G�O�O�B�G�O�O�H�,E�,E�F�F�#�_�s�_�_�6�6��$�D�J�J�L�L�t�D�D�D����%�T�_���I�I�I���	�	�a��!�Q�R�b�	�I�I�I�Z���'�k�4��'�d�g�/�/�/������!�A�!�"�1��M�M�M��&�-J�"�t�w�4�7�<�<�<��
�
�
�q��q���!�
�L�L�L�E��$�R�a�R�(�)���%�H�!�d�g�$�'�;�;�;���	�	�a��a����	�K�K�K��	�	�,� K� K� K� K�L�L�L�
��A�f��4�7�	$�	$�	$�$(�D�Q�q��45�A�A�%)�%G�%G�%G��T�)�)�+�+�,�,��%,��%6�%6��'�!�!�B��@�U�@�@��@��@�@���%�H���T�W�M�M�M���	�	�a��!�"�1�	�=�=�=��+���8�8�8�
����B�q�Q�t��D�D�D� ��)�1�59�W�)-�)=�?�?�?���	
����$�R�b��9�9�9�"�:�K�q�7;�w�+/�+A�C�C�C���	
����D�r���;�;�;� ��)�1�59�W�)-�)=�?�?�?���	
����$�R�b��9�9�9�
��A�f��4�7�	$�	$�	$�$(�D�R��"�45�A�A�%)�%G�%G�%G��%�#��7�t�w�0�0�0��	
�	�	�b��1�2�A�	�>�>�>��-�$�'�:�:�:�����b��q���F�F�F��\���15��%)�%5�7�7�7���	
����d��"��5�5�5���6��48�G�(,�(;�=�=�=���	
�����B�R��8�8�8�"�<�i�q�7;�w�+/�+A�C�C�C���	
����D�r���;�;�;�;�;r>c�<�|�dt��dS)zHandle License button event.zAbout - LicenseN)�display_printer_text�license�r<s r=r�zAboutDialog.show_py_license�s���!�!�"3�W�=�=�=�=�=r>c�<�|�dt��dS)zHandle Copyright button event.zAbout - CopyrightN)r��	copyrightr�s r=r�zAboutDialog.show_py_copyright�s���!�!�"5�y�A�A�A�A�Ar>c�<�|�dt��dS)z#Handle Python Credits button event.zAbout - Python CreditsN)r��creditsr�s r=r�zAboutDialog.show_py_credits�s���!�!�":�G�D�D�D�D�Dr>c�4�|�ddd��dS)z!Handle Idle Credits button event.zAbout - CreditszCREDITS.txt�utf-8N��display_file_textr�s r=r�zAboutDialog.show_idle_credits�s!�����0�-��I�I�I�I�Ir>c�4�|�ddd��dS)zHandle Readme button event.zAbout - Readmez
README.txt�asciiNr�r�s r=r�zAboutDialog.show_readme�s!�����/��w�G�G�G�G�Gr>c�4�|�ddd��dS)zHandle News button event.zAbout - Newsz	News3.txtr�Nr�r�s r=r�zAboutDialog.show_idle_news�s �����~�{�G�D�D�D�D�Dr>c��|���d�|j��}tj||||j���|_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__linesr�	view_textrr9)r<r.�printerrEs    r=r�z AboutDialog.display_printer_text�sU��	���!�!�!��y�y��0�1�1��!)�!3��%��d�k�"3�"3�"3����r>c�
�tj�tj�tj�t
����|��}t
j|||||j���|_	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.
        r�N)
rurvrwrxryrzr�	view_filerr9)r<r.�filename�encoding�fns     r=r�zAboutDialog.display_file_text�sb���W�\�\�"�'�/�/�"�'�/�/�(�*C�*C�D�D�h�
O�
O��!)�!3��%��X�d�k�";�";�";����r>c�V�|���|���dS)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=rrs��������� �U�5� � � � � �DS<�S<�S<�l>�>�>�B�B�B�E�E�E�J�J�J�H�H�H�E�E�E�3�3�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�1�1�1�1�1�1�1�>�>�>�>�>�>�>�>�>�>�>�>�>�>�F�F�F�F�F�F�F�F�F�F�F�F�F�F�F�F�F�F�F�F�F�F�F�F�������������<�8����;��&�&�4�4�D�D�D��<�>�>�!��R�a�R� �D�q�q�q�q�q�(�q�q�q�h�z����������D�	,���F�F�F�F�+�+�+�+�+�+��C��������r>

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