%PDF- %PDF-
Mini Shell

Mini Shell

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

�

=	f��d�ddl�ddlmZddl�ddl�ddl�ddlZddlmZGd�de	e�Z
y)�)�*)�device�N)�	Ui_Dialogc�D�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
dd
�Zy	)�PrintTestPageDialogc���tj||�||_d|_|j	|�|j�tjd|j�y)N�r)	�QDialog�__init__�printer_name�
device_uri�setupUi�initUi�QTimer�
singleShot�updateUi)�self�parentr
s   �+/usr/share/hplip/ui5/printtestpagedialog.pyrzPrintTestPageDialog.__init__&sJ������v�&�(���������T�����
����!�T�]�]�+�c��|jjd�|jj|j	d��|j
jj|j�|jjj|j�|jjj|j�|jjj|j�tjtj tj"�|j$r%|jj'|j$�|j)t+t-dd���y)NTzPrint Test Page�hp_logo�128x128)�HPLIPTestPageRadioButton�
setChecked�	LoadPaper�
setButtonName�_PrintTestPageDialog__tr�CancelButton�clicked�connect�CancelButton_clicked�PrintTestpageButton�PrintTestpageButton_clicked�PrinterNameCombo�"PrinterNameComboBox_currentChanged�PrinterNameCombo_currentChanged�PrinterNameComboBox_noPrinters�signal�SIGINT�SIG_DFLr
�setInitialPrinter�
setWindowIcon�QIcon�load_pixmap�rs rrzPrintTestPageDialog.initUi1s	���%�%�0�0��6����$�$�T�Y�Y�/@�%A�B����!�!�)�)�$�*C�*C�D�� � �(�(�0�0��1Q�1Q�R����@�@�H�H��Im�Im�n����<�<�D�D�T�Eh�Eh�i�	�
�
�f�m�m�V�^�^�4�����!�!�3�3�D�4E�4E�F�	
���5��Y�	�!B�C�Drc�l�|jj�|jj�y�N)r&rrr1s rrzPrintTestPageDialog.updateUiGs$�����&�&�(������!rc�Z�t||jd��|j�y)NzA<b>No printers found.</b><p>Please setup a printer and try again.)�	FailureUIr�closer1s rr)z2PrintTestPageDialog.PrinterNameComboBox_noPrintersMs���$��	�	�"e�f�g��
�
�rc��tjttj��|j
j
d�d}		tj|j|j�}	|j�|j�}|j
j
|�|s<tj#�t%||j'd|jz��j)�tj#�y#t$rtjd�Y��wxYw#t$r,}tjd|j z�Yd}~��d}~wwxYw#tj#�wxYw)NF�>Unable to print to printer. Please check device and try again.�Device error (%s).zW<b>Unable to communicate with printer %s.</b><p>Please check the printer and try again.)�QApplication�setOverrideCursor�QCursor�Qt�
WaitCursorr$�
setEnabledr�Devicerr
�open�isIdleAndNoError�Error�log�error�msg�restoreOverrideCursorr5rr6�r�ok�d�es    r�updatePrintButtonz%PrintTestPageDialog.updatePrintButtonRs?���&�&�w�r�}�}�'=�>�� � �+�+�E�2�
��	1�

.��M�M�$�/�/�4�3D�3D�E��.��F�F�H��+�+�-�B��$�$�/�/��3���2�2�4��$��	�	�+D�GK�GX�GX�+X�!Y�Z�
�G�G�I�
�.�.�0���`��I�I�^�_�`���
8��	�	�.����6�7�7��
8��&
�.�.�0�sO�*D9�7D�A9E1�D6�3E1�5D6�6E1�9	E.�"E)�$E1�)E.�.E1�1Fc�$�|j�yr3)r6r1s rr#z(PrintTestPageDialog.CancelButton_clickedos���
�
�rc�@�||_||_|j�yr3)r
rrL)rrr
s   rr(z3PrintTestPageDialog.PrinterNameCombo_currentChangedss��(���$������ rc��tjttj��d}		tj|j|j�}	|j�|j�}tj�|rmtjttj��	j!|j�tj�|j#�n(t%||j'd|jz��j#�y#t$rtjd�Y��wxYw#t$r-}tjd|jz�Yd}~��d}~wwxYw#tj�wxYw#tj�wxYw)NFr8r9ze<b>A error occured sending the test page to printer %s.</b><p>Please check the printer and try again.)r:r;r<r=r>rr@rr
rArBrCrDrErFrG�
printTestPager6r5rrHs    rr%z/PrintTestPageDialog.PrintTestpageButton_clickedzs_���&�&�w�r�}�}�'=�>�
��	1�

.��M�M�$�/�/�4�3D�3D�E��.��F�F�H��+�+�-�B�
�.�.�0�
��*�*�7�2�=�=�+A�B�
5����� 1� 1�2��2�2�4��J�J�L�
�d�D�I�I�'N�PT�Pa�Pa�'a�b�
c�	���	��)�`��I�I�^�_�`���
8��	�	�.����6�7�7��
8��
�.�.�0���2�2�4�sY�*E�D8�,F�?F.�8E�F�E�F�	F�%"F
�F�
F�F�F+�.GNc�0�tjd||�S)Nr)�qApp�	translate)r�s�cs   r�__trzPrintTestPageDialog.__tr�s���~�~�3�Q��:�:rr3)�__name__�
__module__�__qualname__rrrr)rLr#r(r%r�rrrr%s1��,�E�,"��
1�:�!��D;rr)�base.g�baser�ui_utils�PyQt5.QtCore�PyQt5.QtGuir*�printtestpagedialog_baserrrrZrr�<module>ras0��0�����
�0�x;�'�9�x;r

Zerion Mini Shell 1.0