ó J¡Vc @s0dZdZdZdZddlZddlZddlZddlZddlZddl Z ddl Tddl m Z m Z mZmZmZddlmZd „Zd d „Zd d „Zd d „Zy"ejeeeedeefefƒZejejdddddgƒejƒ\Z Z!Z"Z#Z$Z%ej&e!e"diej'e(fd6ƒZ!e!szej)dƒne*j+de!ƒe#ekrÀe j,ƒsÀe*j-deƒeZ#qÀne#ekr-ye j.e!e"ƒa/Wn4e0k rZ1e*j-de1j2ƒej)dƒnXzyt/j3ƒWn+e0k rWe*j-dƒej)dƒnXt/j4ƒrt/j5j6de(ƒZ7e*j8de7ƒt/j9ƒy?e7e:kr³e*j-dƒne7e;kröej<t/e7ej=ej>ej?ej@eeedƒ nÜe7eAkr9ej<t/e7ejBejCejDej@eeedƒ n™e7eEkr|ej<t/e7ej=ej>ej?ej@eeedƒ nVe7eFkrÅej<t/e7ejGejHejIej@eeedejJƒ n e*j-dƒWqe0k rýZ1e*j-de1dƒqXne*j-dƒej)dƒWdt/j9ƒXnÃy$ddlKmLZLdd lMmNZNWn+eOk r~e*j-d!ƒej)dƒnXeLejPƒZQeNde!ƒZReRjSƒye*j8d"ƒeQjTƒWneUk râej)dƒnXej)dƒWneUk re*j-d#ƒnXe*j+d ƒe*j+d$ƒdS(%s4.0s"Printer Printhead Cleaning Utilityshp-cleans?Printhead cleaning utility for HPLIP supported inkjet printers.iÿÿÿÿN(t*(tdevicetutilstmaintttuitmodule(tcupscCsìtjd|ƒ}|rèd}tjdƒz¤xtrÎtƒytjƒWn+tk rztjdƒ|d7}q2nXtj ƒr‹Pntjdƒ|d7}|dkr2t j dƒt j dƒq2q2WWdtƒtjƒXn|S(Ns$Ready to perform level %d cleaning .iiiii-s$Timeout waiting for print to finish.(Rtcontinue_promptttimetsleeptTruetupdate_spinnertdtopentErrortisIdleAndNoErrortlogterrortsystexittcleanup_spinnertclose(tleveltokttimeout((sU/builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/clean.pytCleanUIx*s.          tcCsG|s#tjdƒtjdƒn tj|ƒtjdƒtdƒS(NsqPlease wait for page to complete printing before continuing. Level 1 cleaning complete. If the printout looks OK.s'Note: Wait for previous print to finishs<Press enter 'q' to quit or to do a level 2 cleaning.i(RtnotetinfoR(tmsg((sU/builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/clean.pytCleanUI1Ms    cCsT|s#tjdƒtjdƒn tj|ƒtjdƒtjdƒtdƒS(NsqPlease wait for page to complete printing before continuing. Level 2 cleaning complete. If the printout looks OK.s'Note: Wait for previous print to finishs<Press enter 'q' to quit or to do a level 3 cleaning.sLevel 3 uses a lot of ink.i(RRRtwarnR(R((sU/builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/clean.pytCleanUI2Xs    cCs'|rtj|ƒn tjdƒdS(Ns‹ Level 3 cleaning complete. Check this page to see if the problem was fixed. If the test page was not printed OK, replace the printhead(s).(RR(R((sU/builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/clean.pytCleanUI3cst see_also_listshp-alignshp-linefeedcals hp-pqdiagtfilters clean-typeisUsing device : %s s@%s -u/--gui requires Qt4 GUI support. Entering interactive mode.sUnable to open device: %sis>Unable to print to printer. Please check device and try again.s Clean type=%dszCleaning through HPLIP not supported for this printer. Please use the printer's front panel to perform printhead cleaning.s0Cleaning not needed or supported on this device.sAn error occured: %ssGDevice is busy or in an error state. Please check device and try again.(t QApplication(t CleanDialogs,Unable to load Qt4 support. Is it installed?sStarting GUI loop...s User exitsDone.(Vt __version__t __title__t__mod__t__doc__RtretgetoptRtoperatortostbase.gtbaseRRRRRtprntRRRR R!tModuletNonetINTERACTIVE_MODEtGUI_MODEtUI_TOOLKIT_QT4tmodtsetUsagetUSAGE_FLAG_DEVICE_ARGSt parseStdOptstoptst device_urit printer_nametmodet ui_toolkittlangt getDeviceUritnetCLEAN_TYPE_NONERRRtcanEnterGUIMode4RtDeviceR RteRR Rtmqtgett clean_typetdebugRtCLEAN_TYPE_UNSUPPORTEDtCLEAN_TYPE_PCLtcleaningt cleanType1t primeType1twipeAndSpitType1tload_paper_prompttCLEAN_TYPE_LIDILt cleanType2t primeType2twipeAndSpitType2tCLEAN_TYPE_PCL_WITH_PRINTOUTtCLEAN_TYPE_LEDMt cleanTypeLedmtcleanTypeLedm1tcleanTypeLedm2tisCleanTypeLedmWithPrintt PyQt4.QtGuiR$tui4.cleandialogR%t ImportErrortargvtapptdlgtshowtexec_tKeyboardInterrupt(((sU/builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/clean.pytsÀ       ( #