| Server IP : 209.205.66.10 / Your IP : 216.73.216.173 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ammon 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64 User : ( 1006) PHP Version : 8.5.8 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/system-config-printer/troubleshoot/__pycache__/ |
Upload File : |
o
3�bX � @ s0 d dl mZ d dlZddlT G dd� de�ZdS )� )�GtkN� )�*c @ s$ e Zd Zdd� Zdd� Zdd� ZdS )�QueueNotEnabledc C sf t �| |d� t�� | _t�� }| j�d� | j�dd� |�| jddd� |� d� |�
|| � d S )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�solution� r �@/usr/share/system-config-printer/troubleshoot/QueueNotEnabled.pyr s
zQueueNotEnabled.__init__c C s� | j j}|d s
dS |d r|d }n|d }|d tjk}|r"dS |d r/|d }|d }n|d }|r<td
�| }ntd�}dtd
� d td�|d }|rX|d| 7 }|d sn|d7 }|td�7 }|dtt� 7 }| j�|� dS )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 �queue�enabled�attrs�reason�textr r r �display% sB
����zQueueNotEnabled.displayc C s dS )NFr )r r r r �can_click_forwardQ s z!QueueNotEnabled.can_click_forwardN)�__name__�
__module__�__qualname__r r) r* r r r r r s
,r )�
gi.repositoryr r �baser r r r r r �<module> s