Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/idlelib/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/idlelib/__pycache__/help_about.cpython-312.opt-1.pyc

�

%Μg#��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     �//usr/local/lib/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�b���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��d�t|d �zt4|j|j��}|jd!dt2dd��|j7d"�fd#��d$t8j:ddz�t|�t4|j|j��}|jd%ddt2dd�&�|j7d"�fd'��t|d(td|j�)�jd*dt<ddd��t?|jA��}
||
k7rd+|znd,}d-tB�d.|
�|��}t|||j|j�/�}|jd0dt2dd��t||j�
�}|jdddtD�1�t|d2d*|j|jF�3�|_$|jHjt4dd�4�t|d5d*|j|jJ�3�|_&|jLjt4dd�4�t|d6d*|j|jN�3�|_(|jPjt4dd�4�t|d(td|j�)�jd7dt<ddd��t|d|j|j�/�}|jd8dt2dd��t||j�
�}|jd9ddtD�1�t|d:d*|j|jR�3�|_*|jTjt4dd�4�t|d;d*|j|jV�3�|_,|jXjt4dd�4�t|d6d*|j|jZ�3�|_.|j\jt4dd�4�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�
columnspanrGrHzhttps://discuss.python.orgzPython forums: �z
<Button-1>c�.��tj��S�N��
webbrowser�open)�event�
forums_urls �r=�<lambda>z,AboutDialog.create_widgets.<locals>.<lambda>]s���
���
�0Kr>z/https://docs.python.org/%d.%d/library/idle.html�)rOrPr[rQrGrHc�.��tj��Sr^r_)rb�docs_urls �r=rdz,AboutDialog.create_widgets.<locals>.<lambda>cs���j�o�o�h�.Gr>�)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
r8�sys�version_infor�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�forums�docs�tclver�tkver�versions�vers�
py_buttons�idle�idle_buttonsrgrcs                    @@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�1�
��'�.?�
�.J� $����T�W�W�>������!�A�B�Q��?����L�"K�L�E��$�$�R�a�(�)���%�H�!�d�g�g�$�'�'�;���	�	�a��a����	�K��	�	�,� G�H�
��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��%�F�t�w�w�4�7�7�K���	�	�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__setupr{�_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)
ryrzr{r|r}r~r�	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<rbs  r=r4zAboutDialog.ok�s���������r>r^)�__name__�
__module__�__qualname__�__doc__r%r,r�r�r�r�r�r�r�r�r4�r>r=rrsO��� �U�5� �DT<�n>�B�E�J�H�E�3�	;�r>r�__main__)�mainz!idlelib.idle_test.test_help_aboutF)�	verbosity�exit)�run)"r�ryr�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�r�(�r�j�z����	,���F�+����r>

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