ok

Mini Shell

Direktori : /opt/cloudlinux/venv/lib/python3.11/site-packages/guppy/etc/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/guppy/etc/__pycache__/textView.cpython-311.pyc

�

�܋fJ����dZddlTddlZGd�de��ZedkrAe��Zeedd��	���	��e�
��dSdS)
zSimple text browser

�)�*Nc�.�eZdZdZdd�Zd�Zd�Zdd�ZdS)	�
TextViewerz,
    simple text viewer dialog for idle
    Nc���t�||��|�d���|�ddd|���dz|���dzfz��d|_d|_|���|�	|��|�
d	|j��||_|j
���|�d
|j��|�d|j��|�|j
�d
|��n|�|��|j
�t&���dS)z�If data exists, load it into viewer, otherwise try to load file.

        fileName - string, should be an absoulute filename
        �)�borderwidthz=%dx%d+%d+%diqi��
z#ffffffz#000000�WM_DELETE_WINDOWz<Return>z<Escape>N�)�state)�Toplevel�__init__�	configure�geometry�winfo_rootx�winfo_rooty�bg�fg�
CreateWidgets�title�protocol�Ok�parent�textView�	focus_set�bind�insert�LoadTextFile�config�DISABLED)�selfrr�fileName�datas     �e/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/guppy/etc/textView.pyrzTextViewer.__init__si��
	���$��'�'�'����1��%�%�%��
�
�n��S�(.�(:�(:�(<�(<�r�(A�(.�(:�(:�(<�(<�r�(A�(C�C�	D�	D�	D��������������
�
�5����	
�
�
�(�$�'�2�2�2�����
���!�!�!��	�	�*�d�g�&�&�&��	�	�*�d�g�&�&�&����M� � ��d�+�+�+�+����h�'�'�'��
���8��,�,�,�,�,�c��d}	t|d��}|j�d|�����dS#t$r8t
j�ddt|��zdz���YdSwxYw)N�rrzFile Load ErrorzUnable to load file z .)r�message)	�openrr�read�IOError�tkinter�
messagebox�	showerror�repr)r!r"�textFiles   r$rzTextViewer.LoadTextFile3s�����	7��H�c�*�*�H�

�M� � ��h�m�m�o�o�6�6�6�6�6��	�	]�	]�	]���(�(�/@�1G��X���1V�W[�1[�
)�
]�
]�
]�
]�
]�
]�	]���s�A�>B�Bc�$�t|td���}t|��}t|d|jt���|_t
|ttd���|_t|td|j|j���|_
|j�|j
j���|j
�|jj�	��|j���|j�t$t&�
��|j
�t(t*t,���|�t.t0�
��|�t2t*t,���dS)Ni�)�relief�height�Close)�text�command�	takefocusr)�orientr7�highlightthickness)�wrapr9rr)r6)�yscrollcommand)�side�fill)r<�expandr=)�Frame�SUNKEN�Buttonr�FALSE�buttonOk�	Scrollbar�VERTICAL�
scrollbarView�Text�WORDrrrr�yview�set�pack�RIGHT�Y�LEFT�TRUE�BOTH�BOTTOM�X�TOP)r!�	frameText�frameButtonss   r$rzTextViewer.CreateWidgets=sO���$�v�c�:�:�:�	��T�{�{���|�'�'+�w�%�A�A�A��
�&�y��16�1�N�N�N����Y�T�a� $��D�G�5�5�5��
���!�!�$�-�*=�!�>�>�>��
���D�,>�,B��C�C�C��
����������U���3�3�3��
����T���=�=�=����v�A��.�.�.����C��4��8�8�8�8�8r%c�.�|���dS�N)�destroy)r!�events  r$rz
TextViewer.OkNs���������r%)NNrW)�__name__�
__module__�__qualname__�__doc__rrrr�r%r$rrsd��������-�-�-�-�>7�7�7�9�9�9�"�����r%r�__main__�Viewc�.�ttdd��S)NrGz
./textView.py)r�rootr^r%r$�<lambda>rcVs��:�d�F�O�D�D�r%)r5r6)r]r,�tkinter.messageboxr
rrZ�TkrbrArK�mainloopr^r%r$�<module>rgs�������������@�@�@�@�@��@�@�@�F�z���
�2�4�4�D�
�F�4�f�D�D�F�F�F�FJ�d�f�f�f��M�M�O�O�O�O�O��r%

Zerion Mini Shell 1.0