3
NZ              Q   @   sl  d Z dZdZdZddlZddlZddlZddlZddlZddl	T ddl
mZmZmZmZ ddlmZ ydd	lmZ W n8 ek
r Z zeje dd
lmZ W Y ddZ[X nX yejeee edeefeefZejej  ej! \Z"Z#Z$Z%Z&Z'dZ(ej)e$e#\Z*Z$Z#e*s ej+d ej,d e%ekrFej- sFej+de  eZ%e%ekrej.e&\Z/Z0ee0d Z1ej2de  e/ej3Z4e1j5de$Z6e6j7  yejd e4j8  W n  e9k
r   ej,d Y nX ej,d e%ekr0yej:e#e$Z;W n> e<k
r0 Z z ej+dej=  ej,d W Y ddZ[X nX zye;j>  W n* e<k
rl   ej+d ej,d Y nX dZ(e;j? re;j@  ejAde$  ye;jBe$ W nL e<k
r Z z.ejCeDkrej+d nej+dejC  W Y ddZ[X nX e(rejAd ejEd dZFxejEd ye;jGdd W n. e<k
rV Z zej+d W Y ddZ[X nX e;jHeIkrhP nPe;jHeJkreK  ej+de;jL  P n*e;jHeMkreK  ejNde;jL  neO  eFd7 ZFeFdkrP qW eK  n
ejAd nej+d  ej,d W de;j@  ejAd! ejPd" ejPd# ejAd! X W n  e9k
rR   ej+d$ Y nX ejAd! ejAd% dS )&z6.0zTestpage Print Utilityzhp-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)zStarting GUI loop...zDevice 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.zAn error occured (code=%d).zGTest page has been sent to printer. Waiting for printout to complete...   T)ZquickzAn 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 exitzDone.)Q__version__Z	__title____mod____doc__sysosZgetoptreZtimeZbase.gbaser   r   r   r   Zprntr   	importlibr   ImportErrorelogdebugZ
base.utilsr	   ZModuleZINTERACTIVE_MODEZGUI_MODEZUI_TOOLKIT_QT4ZUI_TOOLKIT_QT5modZsetUsageZUSAGE_FLAG_DEVICE_ARGSZparseStdOptsZoptsZ
device_uriZprinter_namemodeZ
ui_toolkitlocZwait_for_printoutZgetPrinterNamestserrorexitZcanEnterGUIMode4Zimport_dialogZQApplicationZ
ui_packageZuiZ
set_moduleargvZappZPrintTestPageDialogZdialogZshowZexec_KeyboardInterruptZDevicedErrormsgopenZisIdleAndNoErrorcloseinfoZprintTestPageZoptZ$ERROR_NO_CUPS_QUEUE_FOUND_FOR_DEVICEZsleepiZqueryDeviceZerror_stateZERROR_STATE_CLEARZERROR_STATE_ERRORZcleanup_spinnerZstatus_codeZERROR_STATE_WARNINGZwarningZupdate_spinnerZnotice r)   r)   /usr/share/hplip/testpage.py<module>   s   












"








