| 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/__pycache__/ |
Upload File : |
o
3�b�# � @ s� d dl Z d dlmZ d dlZd dlZeje je jd� d dlZddd�Z G dd� d�Z
G dd � d e
�ZG d
d� de
�ZG dd
� d
e�Z
dS )� N)�Gtk)�domain� localedirc C s� | j }|tjkrt| j�dkrtd| j � tj}|tjkr&t| |||d�S |tjkr3t | |||d�S |tj
kr@t| |||d�S dS )zFactory function� z%Treating Boolean option %s as PickOne�� tab_labelN)�ui�cups�PPD_UI_BOOLEAN�len�choices�print�keyword�PPD_UI_PICKONE�
OptionBool�
OptionPickOne�PPD_UI_PICKMANY�OptionPickMany)�option�ppd�guir r � r �1/usr/share/system-config-printer/optionwidgets.py�OptionWidget s
�r c @ sb e Zd Zddd�Zddd�Zdd� Zd d
� Zdd� Zd
d� Zdd� Z ddd�Z
dd� Zdd� ZdS )�OptionNc s� � | _ || _|| _d| _|| _t�� }t�� | _tj �
tjtjj
�}| j�|� | j�d� |�| j� || _| j�d| j� |�� � fdd�|jD �| _t� | _d| _d S )NT�clickedc s( g | ]}|j � jks|j� jkr|�qS r )�option1r �option2)�.0�c�r r r �
<listcomp>F s
�z#Option.__init__.<locals>.<listcomp>� )r r r �enabledr r �VBox�Button�btnConflict�Image�new_from_icon_name�STOCK_DIALOG_WARNING�IconSize�
SMALL_TOOLBAR�add�set_no_show_all�conflictIcon�connect�on_btnConflict_clicked�show�constraints�set� conflicts�conflict_message)�selfr r r r �vbox�iconr r r �__init__0 s&