%PDF- %PDF-
Mini Shell

Mini Shell

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

�

=	f6�
�.
�dZdZdZdZddlZddlZddlZddlZddlZddl	Z	ddl
�ddlmZm
Z
mZmZmZddlmZ	dd	lmZd�Zd"d
�Zd"d�Zd"d�Z	ej>eeeede e!fe"e#f�Z$e$jKejLgd���e$jO�\Z(Z)Z*Z+Z,Z-e$j]e)e*dej^e0fi��Z)e)sejbd�ejede)z�e+e!k(r'e
jf�sejidez�e Z+e+e k(�r*	ejje)e*�a6		tljs�tlju��r�tljvjyde0�Z=ej1de=z�tlj}�	e=e?k(rejid��nQe=e@k(rIej�tle=ej�ej�ej�ej�eeed�
�ne=eFk(rHej�tle=ej�ej�ej�ej�eeed�
n�e=eJk(rHej�tle=ej�ej�ej�ej�eeed�
nie=eKk(rSej�tle=ej�ej�ej�ej�eeedej��nejid�n#ejid�ejbd�tlj}�n�e
j�e,�\ZQZReeRdz�ZS	eQej��ZUeSj�de)�ZWeWj��	ej1d�eUj��	ejbd�ejed�ejed!�y#e$r"Zej1e�dd
lmZYdZ[���dZ[wwxYw#e7$r;Zejidejpz�ejbd�YdZ[��(dZ[wwxYw#e7$r'ejid�ejbd�Y��EwxYw#e7$r)Zejidejpz�YdZ[���dZ[wwxYw#tlj}�wxYw#eZ$rejbd�Y��6wxYw#eZ$rejid �Y��@wxYw)#z4.0z"Printer Printhead Cleaning Utility�hp-cleanz?Printhead cleaning utility for HPLIP supported inkjet printers.�N)�*)�device�utils�maint�tui�module)�cups)�
import_module)�dyn_import_modc�B�tjd|z�}|r�d}tjd�		t	�	t
j
�t
j�rnJtjd�|dz
}|dkDr*tjd�tjd��~	t�t
j�|S|S#t$rtjd�|dz
}Y��wxYw#t�t
j�wxYw)Nz$Ready to perform level %d cleaning .r����-z$Timeout waiting for print to finish.)r�continue_prompt�time�sleep�update_spinner�d�open�Error�isIdleAndNoError�log�error�sys�exit�cleanup_spinner�close)�level�ok�timeouts   �/usr/share/hplip/clean.py�CleanUIxr$0s���	�	�	�C�e�K�	L�B�	����
�
�1�
�	��� ���F�F�H��%�%�'���
�
�1�
��1����R�<��I�I�D�E��H�H�Q�K�#��
��
�G�G�I�
�I�2�I��)���J�J�q�M��q�L�G����"
��
�G�G�I�s/�C>�C�AC>�#C;�8C>�:C;�;C>�> D�c���|s+tjd�tjd�ntj|�tjd�td�S)NzqPlease wait for page to complete printing before continuing.
Level 1 cleaning complete. If the printout looks OK.�'Note: Wait for previous print to finishz<Press enter 'q' to quit or <enter> to do a level 2 cleaning.r)r�note�infor$��msgs r#�CleanUI1r,SsG������F�	G����:�;�����
��H�H�
K�L��A�;��c���|s+tjd�tjd�ntj|�tjd�tjd�t	d�S)NzqPlease wait for page to complete printing before continuing.
Level 2 cleaning complete. If the printout looks OK.r'z<Press enter 'q' to quit or <enter> to do a level 3 cleaning.zLevel 3 uses a lot of ink.�)rr(r)�warnr$r*s r#�CleanUI2r1^sT������F�	G����:�;�����
��H�H�
K�L��H�H�
)�*��A�;�r-c�^�|rtj|�ytjd�y)Nz�
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*s r#�CleanUI3r3is#��
�����
����`�	ar-)zhp-alignrzhp-linefeedcalz	hp-pqdiag)�
see_also_listz
clean-type)�filterrzUsing device : %s
z@%s -u/--gui requires Qt4 GUI support. Entering interactive mode.zUnable to open device: %sz>Unable to print to printer. Please check device and try again.z
Clean type=%dzzCleaning through HPLIP not supported for this printer. Please use the printer's front panel to perform printhead cleaning.z0Cleaning not needed or supported on this device.zAn error occured: %szGDevice is busy or in an error state. Please check device and try again.z.cleandialogzStarting GUI loop...z	User exitzDone.)r%)[�__version__�	__title__�__mod__�__doc__r�re�getoptr�operator�os�base.g�baserrrrr	�prntr
�	importlibr�ImportError�er�debug�
base.utilsrr$r,r1r3�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�lang�getDeviceUri�ne�CLEAN_TYPE_NONErr)�canEnterGUIMode4r�Devicerrr+rr�mq�get�
clean_typer�CLEAN_TYPE_UNSUPPORTED�CLEAN_TYPE_PCL�cleaning�
cleanType1�
primeType1�wipeAndSpitType1�load_paper_prompt�CLEAN_TYPE_LIDIL�
cleanType2�
primeType2�wipeAndSpitType2�CLEAN_TYPE_PCL_WITH_PRINTOUT�CLEAN_TYPE_LEDM�
cleanTypeLedm�cleanTypeLedm1�cleanTypeLedm2�isCleanTypeLedmWithPrint�
import_dialog�QApplication�
ui_package�ui�argv�app�CleanDialog�dlg�show�exec_�KeyboardInterrupt�r-r#�<module>rzs���.��0�	�
��
K���	�
���	��2�2��;�'�!�F�	�a�g�
�&�-�-���K��$�)�8�4�~�~�6V�X�C��L�L��.�.� -��.�
	����;�D�*�l�D�*�d��!�!�*�l��h�k�k�?�;�<�"�>�J���������H�H�
"�Z�
/�0��x��%�u�%�%�'��I�I�X�[b�b�c�#�D����	���
�
�j�,�7�A�
2	�
�����
�!�!�#��T�T�X�X�l�O�D�
��	�	�/�J�6�7����	� >�!�%;�;��	�	�#_�`�#�~�5�&����q�*�e�6F�6F��HX�HX�(-�(>�(>��@U�@U�(0�(�H�(,�.�
$�'7�7�&����q�*�e�6F�6F��HX�HX�(-�(>�(>��@U�@U�(0�(�H�(,�.�
$�'C�C�&����q�*�e�6F�6F��HX�HX�(-�(>�(>��@U�@U�(0�(�H�(,�.�
$��6�&����q�*�e�6I�6I�5�K_�K_�(-�(<�(<�c�>S�>S�(0�(�H�(,�e�.L�.L�N��	�	�"T�U���	�	�c�d�������
�G�G�I�$7�5�#6�#6�z�#B� ��j�
�:��6�
7��
��s�x�x�(�C��.�.��z�2�C��H�H�J�
��	�	�0�1��	�	��

��C�H�H�Q�K�
�����������_�;��I�I�a�L�:�:��;��|�	��I�I�1�A�E�E�9�:��C�H�H�Q�K�K��	���
��	�	�Z�[�������
��P�>��I�I�4�q�u�u�<�=�=��>��
�G�G�I�� %�
�������
�����I�I�k���s��O6�CS:� P �5Q#�	AS�'E)R�$S�4A*S:�!S�S:�6P�;P�P� Q �%0Q�S:�Q � S:�#(R�S�R�S�S�R;�5S�;S�S�S�S:�S7�3S:�6S7�7S:�:T�T

Zerion Mini Shell 1.0