%PDF- %PDF-
Direktori : /usr/share/hplip/__pycache__/ |
Current File : //usr/share/hplip/__pycache__/testpage.cpython-312.pyc |
� = f� � �| � d Z dZdZdZddlZddlZddlZddlZddlZddl � ddl mZmZm Z mZ ddlmZ dd lmZ ej2 eee edeefeef� Zej? ej@ � ejC � \ Z"Z#Z$Z%Z&Z'dZ(ejS e$e#� \ Z*Z$Z#e*s#ejW d� ejX d � e%ek( r' ejZ � sejW dez � eZ%e%ek( r� ej\ e&� \ Z/Z0 ee0dz � Z1eje dez � e/ejf � Z4e1jk de$� Z6e6jo � ej- d� e4jq � ejX d� e%ek( �r� ejt e#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� ejW de;j� z � nHe;j� eKk( r& eI� ej� de;j� z � n eM� eDd z ZDeDdkD rn�� eI� n5ej� d� n#ejW d � ejX d � e;j� � ej� d!� ej� d"� ej� d#� ej� d!� ej� d!� ej� d%� y# e$ r"Zej- e� dd lmZ Y dZ[��dZ[ww xY w# e9$ r ejX d� Y ��Yw xY w# e<$ r;ZejW dejz z � ejX d � Y dZ[��ldZ[ww xY w# e<$ r' ejW d� ejX d � Y ���w xY w# e<$ rZejW d� Y dZ[��dZ[ww xY w# e<$ rJZej� eOk( rejW d� nejW dej� z � Y dZ[���dZ[ww xY w# e;j� � ej� d!� ej� d"� ej� d#� ej� d!� w xY w# e9$ r ejW d$� Y ���w xY w)&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�baser r r r �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�[������� ��<