%PDF- %PDF-
Direktori : /usr/share/system-config-printer/troubleshoot/__pycache__/ |
Current File : //usr/share/system-config-printer/troubleshoot/__pycache__/QueueNotEnabled.cpython-312.pyc |
� HfX � �8 � d dl mZ d dlZddl� G d� de� Zy)� )�GtkN� )�*c � � e Zd Zd� Zd� Zd� Zy)�QueueNotEnabledc �| � t j | |d� t j � | _ t j � }| j j d� | j j dd� |j | j ddd� |j d� |j || � y )NzQueue not enabled?Tr F� )�Question�__init__r �Label�label�VBox� set_line_wrap� set_alignment� pack_start�set_border_width�new_page)�self�troubleshooter�solutions �@/usr/share/system-config-printer/troubleshoot/QueueNotEnabled.pyr zQueueNotEnabled.__init__ s� � ����4��1E�F��Y�Y�\�� ��8�8�;��� � � � �$�'�� � � � �!�Q�'����T�Z�Z���q�9��!�!�2�&�����4�0� c �� � | j j }|d sy|d r|d }n|d }|d t j k7 }|ry|d r|d }|d }n|d }|rt d � |z }nt d� }dt d � z dz t d� |d z z }|r|d|z z }|d s(|dz }|t d� z }|dt t � z z }| j j |� y)N�cups_queue_listedF� is_cups_class�cups_class_dict�cups_printer_dictz printer-state�cups_printer_remote�remote_cups_queue_attributeszprinter-state-messagezThe reason given is: '%s'.zBThis may be due to the printer being disconnected or switched off.z"<span weight="bold" size="larger">zQueue Not Enabledz </span> zThe queue '%s' is not enabled.� cups_queue� z zuTo enable it, select the 'Enabled' checkbox in the 'Policies' tab for the printer in the printer administration tool.T)r �answers�cups�IPP_PRINTER_STOPPED�_�TEXT_start_print_admin_toolr � set_markup)r r"