%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/hplip/ui5/__pycache__/
Upload File :
Create Path :
Current File : //usr/share/hplip/ui5/__pycache__/printernamecombobox.cpython-312.pyc

�

=	f���p�ddl�ddl�ddlmZddlmZddl�ddl�ddl�dZ	dZ
dZGd�de�Z
y)	�)�*�)�device)�
to_unicode�c�X�eZdZeee�Ze�Zd�Zd�Zd�Z	d�Z
d�Zd�Zd	d�Z
y)
�PrinterNameComboBoxc�2�tj||�d|_d|_i|_d|_d|_t|_t�|_
|jj�|jj�|j�y)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�parents  �+/usr/share/hplip/ui5/printernamecombobox.pyr
zPrinterNameComboBox.__init__/sv������v�&����������#�����
�8���)�^��������!���� � �"����
�c��t|�}|jd�t|�|_|jjd�|j	|j�tddtjtj�}|j|�t|�|_
t
tjtj�}|jd�|jd�|j|jj!�j#��|jj%|�|jjd�|j	|j�|jj'|j)d��|jj*dj-|j.�y)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�
SpacerItemr1s    rrzPrinterNameComboBox.initUi?sM�� ��&�
�� � ��.���������$�$�[�1����T�^�^�,� ��R��)<�)<�k�>Q�>Q�R�
����:�&�!�$���
� ��!6�!6��8M�8M�N�
��'�'��*��%�%�a�(��$�$�T�]�]�%=�%=�%?�%Q�%Q�%S�T��
�
�#�#�J�/��
�
�#�#�J�/����T�]�]�+������t�y�y��4�5�	
�
�
�)�)�*;�<�D�D�T�Ef�Ef�grc�:�|tttfvr||_yy�N)r�!PRINTERNAMECOMBOBOX_TYPE_FAX_ONLY�(PRINTERNAMECOMBOBOX_TYPE_PRINTER_AND_FAXr)rrs  r�setTypezPrinterNameComboBox.setType]s&���8�4�;�=�=��D�H�=rc��||_yr;)r)rrs  r�setInitialPrinterz%PrinterNameComboBox.setInitialPrinterds
��+��rc��|jtk(r.|jj|j	d��dg}no|jt
k(r.|jj|j	d��dg}n.|jj|j	d��ddg}t
j|�|_|jj�|j�r3|j�|jj|_d|_	d}t|j�D]�\}}|j |j|j"<|j$j'||j"�|j��\t)|j"�j+�t)|j�j+�k(s��d|_|}��|j$j-d�d	|_|j$j-|�y|j.j1�y#d	|_wxYw)
Nz
Printer Name:�hpz	Fax Name:�hpfaxzPrinter/Fax Name:Tr���F)rrr r4r5r<r�getSupportedCUPSPrinters�printersr�clearrr�last_used_printerr�	enumerater�namer"�
insertItemr�lower�setCurrentIndex�PrinterNameComboBox_noPrinters�emit)r�	be_filter�k�i�ps     r�updateUizPrinterNameComboBox.updateUihs����8�8�<�<��N�N�"�"�4�9�9�_�#=�>���I�
�X�X�:�
:��N�N�"�"�4�9�9�[�#9�:� �	�I�
�N�N�"�"�4�9�9�-@�#A�B��w��I��7�7�	�B��
���� � �"��=�=��#�#�+�'+�'9�'9�'K�'K��$� �D�M�

&���%�d�m�m�4��D�A�q�12���D�&�&�q�v�v�.��M�M�,�,�Q����7��+�+�7�J�q�v�v�<N�<T�<T�<V�Zd�ei�ey�ey�Zz�[A�[A�[C�=C�/3��,���
��
�
�-�-�b�1�!&��
��M�M�)�)�!�,�
�/�/�4�4�6��!&��
�s�!A2I�AI�&I�	I	c�D�t|�|_|jry|j|j|_|j|j
_|j
j�|jj|j|j�yr;)
rrrrrrrH�save�"PrinterNameComboBox_currentChangedrO)r�ts  rr8z0PrinterNameComboBox.ComboBox_currentIndexChanged�sx��&�q�M����=�=���,�,�T�->�->�?���/3�/@�/@����,������!�	
�/�/�4�4�T�_�_�d�FW�FW�XrNc�0�tjd||�S)Nr	)�qApp�	translate)r�s�cs   r�__trzPrinterNameComboBox.__tr�s���~�~�3�A�a�8�8rr;)�__name__�
__module__�__qualname__�
pyqtSignal�strrWrNr
rr>r@rTr8r5�rrr	r	*s=��)3�C��)=�&�%/�\�"�
� h�<�,�)7�XY�9rr	N)�base.g�ui_utils�baser�base.sixextr�PyQt5.QtCore�PyQt5.QtGui�PyQt5.QtWidgetsrr<r=rr	rdrr�<module>rls@��4���"����)*�%�$%�!�+,�(�y9�'�y9r

Zerion Mini Shell 1.0