403Webshell
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/hplip/ui5/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/hplip/ui5/__pycache__/printernamecombobox.cpython-310.pyc
o

�K0j��@s`ddlTddlTddlmZddlmZddlTddlTddlTdZ	dZ
dZGdd�de�Z
dS)	�)�*�)�device)�
to_unicode�c@sVeZdZeee�Ze�Zdd�Zdd�Zdd�Z	dd�Z
d	d
�Zdd�Zddd�Z
d
S)�PrinterNameComboBoxcCsXt�||�d|_d|_i|_d|_d|_t|_t	�|_
|j
��|j
��|�
�dS)N�F)�QWidget�__init__�printer_name�
device_uri�
printer_index�initial_printer�updating�%PRINTERNAMECOMBOBOX_TYPE_PRINTER_ONLY�typ�UserSettings�
user_settings�load�debug�initUi)�self�parent�r�+/usr/share/hplip/ui5/printernamecombobox.pyr
/s

zPrinterNameComboBox.__init__cCs�t|�}|�d�t|�|_|j�d�|�|j�tddtjtj�}|�|�t	|�|_
ttjtj�}|�
d�|�d�|�|j
�����|j
�|�|j
�d�|�|j
�|j�|�d��|j
jd�|j�dS)N�
HBoxLayout�	NameLabel�r�ComboBoxzPrinter:zconst QString &)�QHBoxLayout�
setObjectName�QLabelr�	addWidget�QSpacerItem�QSizePolicy�Minimum�addItem�	QComboBoxr�	Expanding�	Preferred�setHorizontalStretch�setVerticalStretch�setHeightForWidth�
sizePolicy�hasHeightForWidth�
setSizePolicy�setText�_PrinterNameComboBox__tr�currentIndexChanged�connect�ComboBox_currentIndexChanged)rr�
SpacerItemr-rrrr?s"





zPrinterNameComboBox.initUicCs|tttfvr||_dSdS�N)r�!PRINTERNAMECOMBOBOX_TYPE_FAX_ONLY�(PRINTERNAMECOMBOBOX_TYPE_PRINTER_AND_FAXr)rrrrr�setType]s�
�zPrinterNameComboBox.setTypecCs
||_dSr6)r)rrrrr�setInitialPrinterds
z%PrinterNameComboBox.setInitialPrintercCs<|jtkr|j�|�d��dg}n|jtkr$|j�|�d��dg}n
|j�|�d��ddg}t�|�|_|j	�
�|jr�|jdurI|jj
|_d|_z>d}t|j�D]+\}}|j|j	|j<|j�||j�|jdurt|j���t|j���krd|_|}qT|j�d�Wd	|_nd	|_w|j�|�dS|j��dS)
Nz
Printer Name:�hpz	Fax Name:�hpfaxzPrinter/Fax Name:Tr���F)rrrr0r1r7r�getSupportedCUPSPrinters�printersr
�clearrr�last_used_printerr�	enumerater�namer�
insertItemr�lower�setCurrentIndex�PrinterNameComboBox_noPrinters�emit)r�	be_filter�k�i�prrr�updateUihs6




&�zPrinterNameComboBox.updateUicCsLt|�|_|jr
dS|j|j|_|j|j_|j��|j�	|j|j�dSr6)
rrrr
rrrA�save�"PrinterNameComboBox_currentChangedrH)r�trrrr4�s


z0PrinterNameComboBox.ComboBox_currentIndexChangedNcCst�d||�S)Nr)�qApp�	translate)r�s�crrr�__tr�szPrinterNameComboBox.__trr6)�__name__�
__module__�__qualname__�
pyqtSignal�strrOrGr
rr9r:rMr4r1rrrrr*s
,rN)�base.g�ui_utils�baser�base.sixextr�PyQt5.QtCore�PyQt5.QtGui�PyQt5.QtWidgetsrr7r8r	rrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit