%PDF- %PDF-
Mini Shell

Mini Shell

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

�

=	f�$�
�2�dZdZdZdZddlZddlZddlZddlZddlZddl	�ddl
mZmZm
Z
mZmZmZddlmZ	dd	lmZd�Zd�Zd
�Zd�Zd�Zd�Z d�Z!d�Z"d�Z#	ejHeeeede%e&fe'e(f�Z)e)jUejVgd���e)jY�\Z-Z.Z/Z0Z1Z2e)jge.e/dejhe5fi��Z.e.sejld�ejode.z�e0e&k(r'e
jp�sejsdez�e%Z0e0e%k(�r�	ejte.e/�Z;		e;j}�e;j��r~e;j�j�de5�ZBej1deBz�e;j��eBeDk(rejsd��n7eBeEk(rej�e;ej���neBeHk(r*ej�e;ej�ej���n�eBeKk(r!ej�e;ej�ee��n�eBeMeNfvr"ej�e;ej�eeeP��n�eBeQk(r!ej�e;e!e#ej���npeBeSk(r ej�e;ej�e��nKeBeUeVeWfvr$ej�e;eBej�eeee��n eBeYk(rej�e;ej�e"�n�eBe[k(r ej�e;ej�e"e �n�eBe]k(rej�e;ej��n�eBe_k(r ej�e;ej�e"e �n�eBeak(rej�e;ej�e#�nkeBeck(rej�e;ej�e�nGeBeek(rej�e;ej�e#�n#ejsd�nejsd�e;j��n�e
j�e1�\ZhZieeid z�Zj	ehej��Zlejj�de.�Znenj��	ej1d!�elj��	ejld�ejod#�ejod$�y#e$r"Zej1e�dd
lmZYdZ[���dZ[wwxYw#e<$r;Zejsdejzz�ejld�YdZ[���dZ[wwxYw#e<$r'ejsd�ejld�Y���wxYw#e;j��wxYw#eq$rejld�Y��wxYw#eq$rejsd"�Y��wxYw)%z5.0z#Printer Cartridge Alignment Utilityzhp-alignzzCartridge alignment utility for HPLIP supported inkjet printers. (Note: Not all printers require the use of this utility).�N)�*)�device�status�utils�maint�tui�module)�cups)�
import_module)�dyn_import_modc�v�tjd||fzd|�\}}|stjd�||fS)NzRFrom the printed Alignment page, Enter the best aligned value for line %s (1-%d): �r�r�enter_range�sys�exit)�letter�hortvert�colors�
line_count�maximum�ok�values       �/usr/share/hplip/align.py�enterAlignmentNumberr/sD����� t���)�!*���!�I�B��������
�u�9��c�r�tjd|zd|�\}}|stjd�||fS)NzFEnter numbered arrow that is best aligned with the paper edge (1-%d): rrr)rrrs   r�enterPaperEdger:s?����� h�!�!"���!�I�B��������
�u�9�rc�v�tjd||fzd|�\}}|stjd�||fS)Nz]Enter the numbered box on line %s that is best color matched to the background color (1-%d): rrr)�linerrrs    r�colorAdjr!EsC����� ��w��!(���!�I�B��������
�u�9�rc�.�tjd�y)NzhCannot perform alignment with 0 or 1 cartridges installed.
Please install both cartridges and try again.��log�error�rr�bothPensRequiredr'Ps���I�I�y�zrc�.�tjd�y)NzNInvalid cartridge(s) installed.
Please install valid cartridges and try again.r#r&rr�
invalidPenr)Ts���I�I�_�`rc�.�tjd�y)Nz�Invalid cartridge(s) installed. Cannot align with only the photo cartridge installed.
Please install other cartridges and try again.r#r&rr�invalidPen2r+Xs���I�I�V�Wrc� �tjd�tjd�tjd�tjd�tjdgd�d�\}}|dk(rt	j
d	�|d
k(S)NzyTo perform alignment, you will need the alignment page that is automatically
printed after you install a print cartridge.z*
p		Print the alignment page and continue.zGn		Do Not print the alignment page (you already have one) and continue.z	q		Quit.
z6Choice (p=print page*, n=do not print page, q=quit) ? )�p�n�qr-r/r�y)r$�infor�enter_choicerr)r�choices  r�aioUI1r4\sr���H�H�J�K��H�H�
<�=��H�H�
X�Y��H�H�^���!�!�"Z�\k�mp�q�J�B��
��}�������S�=�rc�r�tj||�}g}t|j��}|j	�|D]p}||ds|jd��t
jd|||dfzd||d�\}}|j|�|r�\tjd��r|S)NrzbEnter the numbered box on line %s where the inner lines best line up with the outer lines (1-%d): r)
r�align10and11and14Controls�list�keys�sort�appendrrrr)�pattern�
align_type�controls�values�
s_controlsr rrs        r�type10and11and14Alignr@js����.�.�w�
�C�H�
�F��h�m�m�o�&�J��O�O���	����~�a� ��M�M�!�����)M���$���*�+�),�./��$���1B�D�I�B���M�M�%� �������	��Mrc�&�tjd�tjtjd��tjd�tjd�tjd�tjd�y)N�z-Follow these steps to complete the alignment:z@1. Place the alignment page, with the printed side facing down, z   in the scanner.z12. Press the Enter or Scan button on the printer.zX3. "Alignment Complete" will be displayed when the process is finished (on some models).)r$r1�boldr&rr�aioUI2rD~sW���H�H�R�L��H�H�S�X�X�E�
F�G��H�H�
O�P��H�H�
!�"��H�H�
@�A��H�H�
g�hr)zhp-cleanzhp-colorcalzhp-linefeedcalz	hp-pqdiag)�
see_also_listz
align-type)�filterrzUsing device : %s
z@%s -u/--gui requires Qt4 GUI support. Entering interactive mode.zUnable to open device: %szGDevice is busy or in an error state. Please check device and try again.zAlignment type=%dz|Alignment through HPLIP not supported for this printer. Please use the printer's front panel to perform cartridge alignment.zInvalid alignment type.z.aligndialogzStarting GUI loop...z	User exitrBzDone.)r�__version__�	__title__�__mod__�__doc__r�re�getopt�operator�os�base.g�baserrrrrr	�prntr
�	importlibr�ImportError�er$�debug�
base.utilsrrrr!r'r)r+r4r@rD�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�ALIGN_TYPE_NONErr1�canEnterGUIMode4r%�Device�d�Error�msg�open�isIdleAndNoError�mq�getr<�close�ALIGN_TYPE_UNSUPPORTED�ALIGN_TYPE_AUTO�
AlignType1PML�load_paper_prompt�ALIGN_TYPE_AIO�AlignType13�load_scanner_for_align_prompt�ALIGN_TYPE_8XX�
AlignType2�ALIGN_TYPE_9XX�ALIGN_TYPE_9XX_NO_EDGE_ALIGN�
AlignType3�update_spinner�ALIGN_TYPE_LIDIL_AIO�
AlignType6�ALIGN_TYPE_DESKJET_450�
AlignType8�ALIGN_TYPE_LIDIL_0_3_8�ALIGN_TYPE_LIDIL_0_4_3�ALIGN_TYPE_LIDIL_VIP�	AlignxBow�ALIGN_TYPE_LBOW�AlignType10�ALIGN_TYPE_LIDIL_0_5_4�AlignType11�ALIGN_TYPE_OJ_PRO�AlignType12�ALIGN_TYPE_LIDIL_DJ_D1600�AlignType14�ALIGN_TYPE_LEDM�AlignType15�ALIGN_TYPE_LEDM_MANUAL�AlignType16�ALIGN_TYPE_LEDM_FF_CC_0�AlignType17�
import_dialog�QApplication�
ui_package�ui�argv�app�AlignDialog�dlg�show�exec_�KeyboardInterruptr&rr�<module>r�s���.��1�	�
��G���	�
��	��:�:��;�'�
���{�a�W���(i�~�
�&�-�-���K��$�)�8�4�~�~�6V�X�C��L�L��.�.� -��.�
	����;�D�*�l�D�*�d��!�!�*�l�����_�=�>�"�@�J���������H�H�
"�Z�
/�0��x��%�u�%�%�'��I�I�X�[b�b�c�#�D����	���
�
�j�,�7�A�
D	�
�����
�!�!�#��T�T�X�X�l�O�D�
��	�	�-�
�:�;����	��!7�7��I�I�]�^��?�2�'�E�'�'��3�+@�+@�A��>�1�%�E�%�%�a��)>�)>��@a�@a�b��>�1�$�E�$�$�Q��(=�(=�?S�&6�8� �N�3O�#P�P�$�E�$�$�Q��(=�(=�?S�&4�n�F� �#7�7�$�E�$�$�Q����8M�8M�N��#9�9�$�E�$�$�Q��(=�(=�?S�T��$:�<R�Th�#i�i�#�E�O�O�A�z�3�3H�3H�J^�`n�%/��;� �O�3�%�E�%�%�a��)>�)>�@U�V��#9�9�%�E�%�%�a��)>�)>�@U�Wb�c��#4�4�%�E�%�%�a��)>�)>�?��#<�<�%�E�%�%�a��)>�)>�@U�Wb�c��?�2�%�E�%�%�a��)>�)>��G��#9�9�%�E�%�%�a��)>�)>�@T�U��#:�:�%�E�%�%�a��)>�)>��G��I�I�7�8��	�	�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������������A�;��I�I�a�L�:�:��;��n�	��I�I�1�A�E�E�9�:��C�H�H�Q�K�K��	���
��	�	�c�d�������
��B
�G�G�I��*%�
�������
�����I�I�k���s��R-�CU<�*S�?T�J U	�/A&U<�!U�7U<�-S�2S�S�T�0T�U<�T�U<�(U�U	�U�U	�	U�U<�U9�5U<�8U9�9U<�<V�V

Zerion Mini Shell 1.0