%PDF- %PDF-
Direktori : /usr/share/hplip/__pycache__/ |
Current File : //usr/share/hplip/__pycache__/align.cpython-312.pyc |
� = f�$ � �2 � d Z dZdZdZddlZddlZddlZddlZddlZddl � ddl mZmZm Z mZmZmZ ddlmZ dd lmZ d� Zd� Zd � Zd� Zd� Zd� Z d� Z!d� Z"d� Z# ejH eee ede%e&fe'e(f� Z)e)jU ejV g d��� e)jY � \ Z-Z.Z/Z0Z1Z2e)jg e.e/dejh e5fi�� Z.e.s ejl d� ejo de.z � e0e&k( r' e jp � sejs dez � e%Z0e0e%k( �r� ejt e.e/� Z; e;j} � e;j � �r~e;j� j� de5� ZBej1 deBz � e;j� � eBeDk( rejs d� �n7eBeEk( r ej� e;ej� � �neBeHk( r* ej� e;ej� ej� � �n�eBeKk( r! ej� e;ej� ee� �n�eBeMeNfv r" ej� e;ej� eeeP� �n�eBeQk( r! ej� e;e!e#ej� � �npeBeSk( r ej� e;ej� e� �nKeBeUeVeWfv r$ ej� e;eBej� eeee� �n eBeYk( r ej� e;ej� e"� n�eBe[k( r ej� e;ej� e"e � n�eBe]k( r ej� e;ej� � n�eBe_k( r ej� e;ej� e"e � n�eBeak( r ej� e;ej� e#� nkeBeck( r ej� e;ej� e� nGeBeek( r ej� e;ej� e#� n#ejs d� nejs d� e;j� � n� e j� e1� \ ZhZi eeid z � Zj ehej� � Zlejj� de.� Znenj� � ej1 d!� elj� � ejl d� ejo d#� ejo d$� y# e$ r"Zej1 e� dd lmZ Y dZ[���dZ[ww xY w# e<$ r;Zejs dejz z � ejl d� Y dZ[���dZ[ww xY w# e<$ r' ejs d� ejl d� Y ���w xY w# e;j� � w xY w# eq$ r ejl d� Y ��w xY w# eq$ r ejs d"� Y ��w xY w)%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 � t j d| |fz d|� \ }}|st j d� ||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 � t j d| z d| � \ }}|st j d� ||fS )NzFEnter numbered arrow that is best aligned with the paper edge (1-%d): r r r )r r r s r �enterPaperEdger : s? � ���� h�!�!"���!�I�B�� ������ �u�9�r c �v � t j d| |fz d|� \ }}|st j d� ||fS )Nz]Enter the numbered box on line %s that is best color matched to the background color (1-%d): r r r )�liner r r s r �colorAdjr! E sC � ���� ��w��!(���!�I�B�� ������ �u�9�r c �. � t j d� y )NzhCannot perform alignment with 0 or 1 cartridges installed. Please install both cartridges and try again.��log�error� r r �bothPensRequiredr'