%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/system-config-printer/troubleshoot/__pycache__/
Upload File :
Create Path :
Current File : //usr/share/system-config-printer/troubleshoot/__pycache__/Shrug.cpython-312.pyc

�

Hf���0�ddlmZddl�Gd�de�Zy)�)�Gtk�)�*c�*�eZdZd�Zd�Zd�Zd�Zd�Zy)�Shrugc��tj||d�|jtd�td��}tj
j
td��}|jd�t	j�}|j|�t	j�}|jd�|j|�|j|ddd�|j�|_t	j�}|j!d�|j#d�|j%tj&j(�|j|ddd�tj*j-tj.�|_|j|j0ddd�|j3||�y)	NrzSorry!z�There is no obvious solution to this problem.  Your answers have been collected together with other useful information.  If you would like to report a bug, please include this information.zDiagnostic Output (Advanced)FTr�)�Question�__init__�initial_vbox�_r�Expander�new�set_expanded�ScrolledWindow�add�TextView�set_editable�
pack_start�
get_buffer�buffer�
HButtonBox�set_border_width�set_spacing�
set_layout�ButtonBoxStyle�END�Button�new_from_stock�
STOCK_SAVE�save�new_page)�self�troubleshooter�page�expander�sw�textview�boxs       �6/usr/share/system-config-printer/troubleshoot/Shrug.pyrzShrug.__init__sU�����4���9�� � �!�H�+�"#�%@�#A�B���<�<�#�#�A�&D�$E�F�����u�%�
�
�
�
"�����b���<�<�?�����u�%�
���������4��q�1��)�)�,����n�n������a� ����������*�*�.�.�/�����e�U�A�.��J�J�-�-�s�~�~�>��	�����	�	�5�%��3�����t�,�c�j�|jj|jj��y)NT)r�set_textr$�answers_as_text�r#s r*�displayz
Shrug.display9s&�������d�1�1�A�A�D�E�r+c�Z�|jjd|j�|_y)N�clicked)r!�connect�on_save_clicked�
save_sigid)r#�handlers  r*�connect_signalszShrug.connect_signals=s ���)�)�+�+�Y��8L�8L�M��r+c�N�|jj|j�y)N)r!�
disconnectr5r/s r*�disconnect_signalszShrug.disconnect_signals@s���	�	���d�o�o�.r+c���	|jj�}tj|tjj
��}|j
tjtjjtjtjj�|jd�|jd�|jtjj�|jd�|j!�}|j#�|tjjk7ry	t%|j'�d�}|j)|j*j-|j*j/�|j*j1�d���~y#t2$r�}tj4|ddtj6j8tj:j<t?d���}|jAt?d	�d
z|jBz�|j!�|jE�Yd}~��kd}~wwxYw)NT)�
transient_for�actionztroubleshoot.txt�wF)�start�end�include_hidden_charszError saving file)�parent�modal�destroy_with_parent�message_type�buttons�textz#There was an error saving the file:�
)#r$�
get_windowr�FileChooserDialog�FileChooserAction�SAVE�add_buttons�STOCK_CANCEL�ResponseType�CANCELr �OK�set_do_overwrite_confirmation�set_current_name�set_default_response�set_local_only�run�hide�open�get_filename�writer�get_text�get_start_iter�get_end_iter�IOError�
MessageDialog�MessageType�ERROR�ButtonsType�CLOSEr
�format_secondary_text�strerror�destroy)r#�buttonrB�dialog�response�f�e�errs        r*r4zShrug.on_save_clickedCs�����(�(�3�3�5�F��*�*�&�36�3H�3H�3M�3M�O�F����� 0� 0�#�2B�2B�2I�2I� #����0@�0@�0C�0C�
E��0�0�$�7��#�#�%7�8��'�'��)9�)9�)<�)<�=��!�!�4�(��z�z�}�H��K�K�N��3�+�+�.�.�.��
��&�-�-�0�#�6��������-�-�T�[�[�5O�5O�5R�37�;�;�3K�3K�3N�DI�.�K�L� ����
��'�'��/3��69�o�o�6K�6K�14���1F�1F�./�0C�.D�	F��
�)�)�1�.9�,:�<@�,A�+,�:�:�,6�7����
�������
�s�A7F?�?	I1�BI,�,I1N)�__name__�
__module__�__qualname__rr0r7r:r4�r+r*rrs��-�>�N�/�#r+rN)�
gi.repositoryr�baser
rrpr+r*�<module>rss��,��M�H�Mr+

Zerion Mini Shell 1.0