
    KcX                     >    d dl mZ d dlZddlT  G d de          ZdS )    )GtkN   )*c                        e Zd Zd Zd Zd ZdS )QueueNotEnabledc                    t                               | |d           t          j                    | _        t          j                    }| j                            d           | j                            dd           |                    | j        ddd           |	                    d           |
                    ||            d S )NzQueue 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   zQueueNotEnabled.__init__   s    41EFFFY\\
8;;
  $'''
  !Q'''TZq999!!2&&&400000    c                 8   | j         j        }|d         sdS |d         r	|d         }n|d         }|d         t          j        k    }|rdS |d         r|d         }|d	         }n|d	         }|rt	          d
          |z  }nt	          d          }dt	          d          z   dz   t	          d          |d         z  z   }|r|d|z   z  }|d         s1|dz  }|t	          d          z  }|dt	          t
                    z   z  }| j                            |           dS )Ncups_queue_listedFis_cups_classcups_class_dictcups_printer_dictzprinter-statecups_printer_remoteremote_cups_queue_attributeszprinter-state-messagezThe reason given is: '%s'.zBThis may be due to the printer being disconnected or switched off.z"<span weight="bold" size="larger">zQueue Not Enabledz	</span>

zThe 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"   queueenabledattrsreasontexts          r   displayzQueueNotEnabled.display%   s   &.*+ 	5?# 	1-.EE/0E(D,DD 	5() 	4:;E23FF23F 	(344v=FF ' ( (F 5%&&')67233%&&
  	!C&L D,- 	9FNDA - . . .D C!78888D
t$$$tr   c                     dS )NF )r   s    r   can_click_forwardz!QueueNotEnabled.can_click_forwardQ   s    ur   N)__name__
__module____qualname__r   r-   r0   r/   r   r   r   r      sB        1 1 1* * *X    r   r   )gi.repositoryr   r#   baser
   r   r/   r   r   <module>r6      sb   ,           8 8 8 8 8h 8 8 8 8 8r   