%PDF- %PDF-
Direktori : /usr/share/system-config-printer/troubleshoot/__pycache__/ |
Current File : //usr/share/system-config-printer/troubleshoot/__pycache__/QueueRejectingJobs.cpython-312.pyc |
� Hf� � �8 � d dl mZ d dlZddl� G d� de� Zy)� )�GtkN� )�*c � � e Zd Zd� Zd� Zd� Zy)�QueueRejectingJobsc �x � t j | |d� t j � }|j d� |j d� t j dt d� z dz �� }|j dd� |j d� |j |d d d� t j � | _ | j j dd� | j j d� |j | j d d d� |j d� |j || � y ) NzQueue rejecting jobs?� z"<span weight="bold" size="larger">zQueue Rejecting Jobsz</span>)�labelr TF)�Question�__init__r �VBox�set_border_width�set_spacing�Label�_� set_alignment�set_use_markup� pack_startr � set_line_wrap�new_page)�self�troubleshooter�solutionr s �C/usr/share/system-config-printer/troubleshoot/QueueRejectingJobs.pyr zQueueRejectingJobs.__init__ s � ����4��1H�I��8�8�;���!�!�2�&����b�!�� � � D��3�4�!5�7@�!A� B�� ���Q��"� ���d�#����U�E�5�!�4��Y�Y�\�� �� � � � �!�Q�'�� � � � �$�'����T�Z�Z���q�9��!�!�2�&�����4�0� c � � | j j }|d sy|d r|d }n|d }|d t j z }|sy|d r|d }|d }n|d }t d � |d z }|r|dt d � |z z z }|d s&|dz }|t d� dz t t � z z }| j j |� y)N�cups_queue_listedF� is_cups_class�cups_class_dict�cups_printer_dictzprinter-type�cups_printer_remote�remote_cups_queue_attributeszprinter-state-messagez!The queue '%s' is rejecting jobs.� cups_queue� zThe reason given is: '%s'.z z�To make the queue accept jobs, select the 'Accepting Jobs' checkbox in the 'Policies' tab for the printer in the printer administration tool.T)r �answers�cups�CUPS_PRINTER_REJECTINGr �TEXT_start_print_admin_toolr �set_text)r r% �queue� rejecting�attrs�reason�texts r �displayzQueueRejectingJobs.display- s � ��%�%�-�-���*�+���?�#��-�.�E��/�0�E��.�)�D�,G�,G�G� ����(�)��:�;�E��2�3�F��2�3�F��5�6���9N�N����C�!�8�9�F�B�B�B�D��,�-��F�N�D��A� � � "%�%� ()�)D�'E�F� F�D� � � ���T�"�r c � � y)NF� )r s r �can_click_forwardz$QueueRejectingJobs.can_click_forwardP s � �r N)�__name__� __module__�__qualname__r r/ r2 r1 r r r r s � �1�$!�Fr r )� gi.repositoryr r&