%PDF- %PDF-
Mini Shell

Mini Shell

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

�

=	f���ddlZddl�ddlmZmZmZddl�ddl�ddl�ddl	�ddl
mZddlm
Z
Gd�dee�Zy)	�N)�*)�device�utils�maint�)�	Ui_Dialog)�DEVICEURICOMBOBOX_TYPE_FAX_ONLYc�>�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d
d	�Z
y)�LineFeedCalDialogc��tj||�|j|�||_|j	�t
j
d|j�y)Nr)�QDialog�__init__�setupUi�
device_uri�initUi�QTimer�
singleShot�updateUi)�self�parentrs   �)/usr/share/hplip/ui5/linefeedcaldialog.pyrzLineFeedCalDialog.__init__*sB������v�&����T��$������
����!�T�]�]�+�c��|jjj|j�|jjj|j
�|jjj|j�|jjj|j�|jjdtjdfi�|jttdd���|jr&|jj!|j�yy)Nzlinefeed-cal-typer�hp_logo�128x128)�CancelButton�clicked�connect�CancelButton_clicked�CalibrateButton�CalibrateButton_clicked�DeviceComboBox�DeviceUriComboBox_noDevices� DeviceUriComboBox_currentChanged�	setFilter�operator�gt�
setWindowIcon�QIcon�load_pixmapr�setInitialDevice�rs rrzLineFeedCalDialog.initUi2s������!�!�)�)�$�*C�*C�D����$�$�,�,�T�-I�-I�J����7�7�?�?��@`�@`�a����<�<�D�D�T�Ej�Ej�k����%�%�':�X�[�[�!�<L�&M�N�	
���5��Y�	�!B�C�D��?�?����0�0����A�rc��|jj�|jj|j	d��|jj�y)N�	Calibrate)r"r�	LoadPaper�
setButtonName�_LineFeedCalDialog__trr,s rrzLineFeedCalDialog.updateUiAs?�����$�$�&����$�$�T�Y�Y�{�%;�<������!rc��||_y�N)r)rrs  rr$z2LineFeedCalDialog.DeviceUriComboBox_currentChangedGs	��$��rc�Z�t||jd��|j�y)NzZ<b>No devices that support line feed calibration found.</b><p>Click <i>OK</i> to exit.</p>)�	FailureUIr1�closer,s rr#z-LineFeedCalDialog.DeviceUriComboBox_noDevicesLs(���$��	�	�#C�D�	E��
�
�rc�$�|j�yr3)r6r,s rrz&LineFeedCalDialog.CancelButton_clickedQs���
�
�rc�D�d}		tj|j�}|j}	|j�|j�rB|tk(rtj|d��n-|tk(r$tj|d��nt	|�	|�|j�	|j�y#t$r!t	|�Y|�|j�yywxYw#t$rt	|�Y�gwxYw#|�|j�wwxYw)Nc��y�NT�r;rr�<lambda>z;LineFeedCalDialog.CalibrateButton_clicked.<locals>.<lambda>h��rc��yr:r;r;rrr<z;LineFeedCalDialog.CalibrateButton_clicked.<locals>.<lambda>kr=r)r�Devicer�Error�
CheckDeviceUIr6�linefeed_cal_type�open�isIdleAndNoError�LINEFEED_CAL_TYPE_OJ_K550r�linefeedCalType1�LINEFEED_CAL_TYPE_OJ_PRO_L7XXX�linefeedCalType2)r�d�
linefeed_types   rr!z)LineFeedCalDialog.CalibrateButton_clickedUs����	�
��M�M�$�/�/�2��
�/�/�M�

(������%�%�'�$�(A�A��.�.�q�-�@�&�*H�H��.�.�q�-�@�"�$�'��}����	��
�
���3�
��d�#��(�}����	��-
���
$��d�#�
$���}����	��sL�C�D
�C0�AD
�C-�D
�,C-�-D
�0D�D
�D�D
�
DNc�0�tjd||�S)Nr)�qApp�	translate)r�s�cs   r�__trzLineFeedCalDialog.__trzs���~�~�1�!�A�6�6rr3)�__name__�
__module__�__qualname__rrrr$r#rr!r1r;rrrr)s,��,�B�"�%�
�
��J7rr)r&�base.g�baserrr�
base.codes�ui_utils�PyQt5.QtCore�PyQt5.QtGui�linefeedcaldialog_baser�deviceuricomboboxr	r
rr;rr�<module>r\s;��.��%�%�����.�>�R7���R7r

Zerion Mini Shell 1.0