%PDF- %PDF-
Mini Shell

Mini Shell

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

�

Hf}���ddlZddlZddlmZddlZej
ejej��d	d�Zd	d�Z	d	d�Z
d	d�Zd	d�Zy)
�N)�Gtk)�domain�	localedirc���tj|dd|tjj|��}|j	|�|j�|j
�y)NT)�parent�modal�destroy_with_parent�message_type�buttons�text)r�
MessageDialog�ButtonsType�OK�format_secondary_text�run�destroy)�titler�typer�dialogs     �0/usr/share/system-config-printer/errordialogs.py�show_dialogrsO��
�
�
�v�&*��-1�(+���(:�(:�%*�	,�F�
� � �$�'�
�J�J�M�
�N�N��c�P�t||tjj|��S�N)r)rr�MessageType�INFO�rrrs   r�show_info_dialogr(s����t�S�_�_�%9�%9�&�I�Irc�P�t||tjj|��Sr)rrr�ERRORrs   r�show_error_dialogr!+s����t�S�_�_�%:�%:�6�J�Jrc��|dk(ry|tjk(rytd�}td�|z}t|||�y)Nr�CUPS server errorz3There was an error during the CUPS operation: '%s'.)�cups�IPP_SERVICE_UNAVAILABLE�_r!)�	exception�messagerrrs     r�show_IPP_Errorr).sM���A�~��	�d�2�2�	2���%�&���$�%�'.�/���u�d�F�+rc�>�|tjk(s|tjk(rtd�}td�}n�td�}|tjk(rtd�}n�|tj
k(rtd�}n||tjk(rtd�}n]|tjk(rtd�}n>|tjk(rtd�}n|d	k(rtd
�}ntd�|z}td�|z}t|||�y)
NzNot authorizedz]The password may be incorrect, or the server may be configured to deny remote administration.r#zBad requestz	Not foundzRequest timeoutzUpgrade requiredzServer error���z
Not connectedz	status %szThere was an HTTP error: %s.)
r$�HTTP_UNAUTHORIZED�HTTP_FORBIDDENr&�HTTP_BAD_REQUEST�HTTP_NOT_FOUND�HTTP_REQUEST_TIMEOUT�HTTP_UPGRADE_REQUIRED�HTTP_SERVER_ERRORr!)�statusrrr�msgs     r�show_HTTP_Errorr5<s����$�(�(�(��$�%�%�%��"�#���+�,���%�&���T�*�*�*��M�"�C�
�t�*�*�
*��K�.�C�
�t�0�0�
0��%�&�C�
�t�1�1�
1��&�'�C�
�t�-�-�
-��N�#�C�
�r�\��O�$�C��K�.�6�)�C��/�0�3�6���u�d�F�+r)N)
�configr$�
gi.repositoryr�gettext�install�PACKAGErrrr!r)r5�rr�<module>r<sH��0��������v�~�~��1A�1A�B��J�K�,�,r

Zerion Mini Shell 1.0