Sindbad~EG File Manager

Current Path : /usr/share/hplip/__pycache__/
Upload File :
Current File : //usr/share/hplip/__pycache__/testpage.cpython-310.pyc

o

�/�a��
@s�dZdZdZdZddlZddlZddlZddlZddlZddl	Tddl
mZmZm
Z
mZddlmZzdd	lmZWneyWZze�e�dd
lmZWYdZ[ndZ[ww�z�e�eeeedeefeef�Ze�ej �e�!�\Z"Z#Z$Z%Z&Z'dZ(e�)e$e#�\Z*Z$Z#e*s�e�+d�e�,d
�e%ekr�e�-�s�e�+de�eZ%e%ekr�e�.e&�\Z/Z0ee0d�Z1e�2de�	e/ej3�Z4e1�5de$�Z6e6�7�ze�d�e4�8�Wne9y�e�,d�Ynwe�,d�e%ek�r*ze�:e#e$�Z;Wn e<�yZze�+dej=�e�,d
�WYdZ[ndZ[wwz�ze;�>�Wne<�y1e�+d�e�,d
�YnwdZ(e;�?��r�e;�@�e�Ade$�ze;�Be$�Wn'e<�yrZzejCeDk�r`e�+d�ne�+dejC�WYdZ[n�dZ[wwe(�r�e�Ad�e�Ed�dZF	e�Ed�ze;jGdd�Wne<�y�Zze�+d�WYdZ[ndZ[wwe;jHeIk�r�n3e;jHeJk�r�eK�e�+de;jL�n!e;jHeMk�r�eK�e�Nde;jL�neO�eFd
7ZFeFdk�r�n�q�eK�ne�Ad�n
e�+d �e�,d
�We;�@�e�Ad!�e�Pd"�e�Pd#�e�Ad!�ne;�@�e�Ad!�e�Pd"�e�Pd#�e�Ad!�wWne9�y:e�+d$�Ynwe�Ad!�e�Ad%�dS)&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...zQNo CUPS queue found for device. Please install the printer in CUPS and try again.zAn error occured (code=%d).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.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�opt�$ERROR_NO_CUPS_QUEUE_FOUND_FOR_DEVICE�sleep�i�queryDevice�error_state�ERROR_STATE_CLEAR�ERROR_STATE_ERROR�cleanup_spinner�status_code�ERROR_STATE_WARNING�warning�update_spinner�notice�rYrY�/usr/share/hplip/testpage.py�<module>s�
����



�

��
�
��


��
�

�


�


��


Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists