%PDF- %PDF-
Mini Shell

Mini Shell

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

�

=	f��
�|
�dZdZdZdZddlZddlZddlZddlZddlZddl	�ddl
mZmZm
Z
mZddlmZ	dd	lmZ	ej2eeeedeefeef�Zej?ej@�ejC�\Z"Z#Z$Z%Z&Z'dZ(ejSe$e#�\Z*Z$Z#e*s#ejWd�ejXd
�e%ek(r'ejZ�sejWdez�eZ%e%ek(r�ej\e&�\Z/Z0ee0dz�Z1ejedez�	e/ejf�Z4e1jkde$�Z6e6jo�	ej-d�e4jq�ejXd�e%ek(�r�	ejte#e$�Z;		e;j}�dZ(e;j��r*e;j��ej�de$z�	e;j�e$�e(r�ej�d�ej�d�dZD	ej�d�	e;j�d��e;j�eGk(rn}e;j�eHk(r&eI�ejWde;j�z�nHe;j�eKk(r&eI�ej�de;j�z�neM�eDd
z
ZDeDdkDrn��eI�n5ej�d�n#ejWd �ejXd
�e;j��ej�d!�ej�d"�ej�d#�ej�d!�ej�d!�ej�d%�y#e$r"Zej-e�dd
lmZYdZ[��dZ[wwxYw#e9$rejXd�Y��YwxYw#e<$r;ZejWdejzz�ejXd
�YdZ[��ldZ[wwxYw#e<$r'ejWd�ejXd
�Y���wxYw#e<$rZejWd�YdZ[��dZ[wwxYw#e<$rJZej�eOk(rejWd�nejWdej�z�YdZ[���dZ[wwxYw#e;j��ej�d!�ej�d"�ej�d#�ej�d!�wxYw#e9$rejWd$�Y���wxYw)&z6.0zTestpage Print Utilityzhp-testpagezePrint a tespage to a printer. Prints a summary of device information and shows the printer's margins.�N)�*)�device�utils�tui�module)�cups)�
import_module)�dyn_import_modFz@No installed printers found (or) Invalid printer device selected�z@%s -u/--gui requires Qt4 GUI support. Entering interactive mode.z.printtestpagedialogz%s(UI)zStarting GUI loop...zDevice error (%s).z>Unable to print to printer. Please check device and try again.z#Printing test page to printer %s...zGTest page has been sent to printer. Waiting for printout to complete...�T)�quickzAn error has occured.zGAn error has occured (code=%d). Please check the printer and try again.zHThere is a problem with the printer (code=%d). Please check the printer.�z#Test page has been sent to printer.zQNo CUPS queue found for device. Please install the printer in CUPS and try again.zAn error occured (code=%d).zGDevice is busy or in an error state. Please check device and try again.�zQIf an error occured, or the test page failed to print, refer to the HPLIP websitezAat: http://hplip.sourceforge.net for troubleshooting and support.z	User exitzDone.)Q�__version__�	__title__�__mod__�__doc__�sys�os�getopt�re�time�base.g�baserrrr�prntr�	importlibr	�ImportError�e�log�debug�
base.utilsr
�Module�INTERACTIVE_MODE�GUI_MODE�UI_TOOLKIT_QT4�UI_TOOLKIT_QT5�mod�setUsage�USAGE_FLAG_DEVICE_ARGS�parseStdOpts�opts�
device_uri�printer_name�mode�
ui_toolkit�loc�wait_for_printout�getPrinterName�sts�error�exit�canEnterGUIMode4�
import_dialog�QApplication�
ui_package�ui�
set_module�argv�app�PrintTestPageDialog�dialog�show�exec_�KeyboardInterrupt�Device�d�Error�msg�open�isIdleAndNoError�close�info�
printTestPage�sleep�i�queryDevice�error_state�ERROR_STATE_CLEAR�ERROR_STATE_ERROR�cleanup_spinner�status_code�ERROR_STATE_WARNING�warning�update_spinner�opt�$ERROR_NO_CUPS_QUEUE_FOUND_FOR_DEVICE�notice���/usr/share/hplip/testpage.py�<module>r]s���.��$�	�
��
q���	�
�	���+�+��;�'�A�
�&�-�-���K��$�)�8�4�'��8�:�C��L�L��.�.�/�	����:�D�*�l�D�*�c���$'�$6�$6�|�Z�$P�!�C��z���	�	�T�U��������x��%�u�%�%�'��I�I�X�[b�b�c�#�D��x��$7�5�#6�#6�z�#B� ��j�
�:�(>�>�
?�����x�'�)�*���s�x�x�(�C��+�+�D�,�?�F��K�K�M�
��	�	�0�1��	�	��	���������	���
�
�j�,�7�A�
H	�
�����!&���!�!�#����	����?�,�N�O�-H��O�O�L�1�)����!j�k�"��
�
�1�
���"�&�D�J�J�q�M�C� !�
�
�D�
� 9� !�}�}�0A�A� %�!"���2C�!C� /� 1� #�	�	�*s�vw�wD�wD�+D�!E� %�!"���2E�!E� /� 1� #���,v�yz�zG�zG�-G�!H�!/� 0���F�A� �2�v� %�5#�8(�)����!F�G��	�	�c�d�������
�G�G�I��H�H�R�L��J�J�j�k��J�J�Z�[��H�H�R�L�
�����������U�;��I�I�a�L�:�:��;��^%�
�������
���	��I�I�*�Q�U�U�2�3��C�H�H�Q�K�K��	���
��	�	�Z�[�������
��<$)�C� #�	�	�*A� B� B��C��#�I��u�u� D�D��	�	�"u�v��	�	�"?�!�%�%�"G�H���	I��f
�G�G�I��H�H�R�L��J�J�j�k��J�J�Z�[��H�H�R�L�����I�I�k���s��N�D%T!�"!O�T!�O �1P#�7S�9Q6�
:S�Q�C
S�!AT!�N?�N:�:N?�O�T!�O�T!� P �%0P�T!�P � T!�#(Q�S�Q�S�Q3�Q.�(S�.Q3�3S�6S�;?S�:S�S�S�AT�T!�!T;�:T;

Zerion Mini Shell 1.0