%PDF- %PDF-
| Direktori : /usr/share/hplip/ui5/__pycache__/ |
| Current File : //usr/share/hplip/ui5/__pycache__/plugindiagnose.cpython-312.pyc |
�
= f � � � d dl � d dlmZmZmZ d dlmZ d dl� ddl� d dl m
Z
d dlmZ d dl
� d dl� d dlZddlmZ G d � d
ee� Zy)� )�*)�device�utils�pkit)�cups� )�
pluginhandler)�
to_unicodeN)� Ui_Dialogc �@ � e Zd Zeedfd�Zd� Zd� Zd� Zd� Z d� Z
d
d �Zy)�PluginDiagnoseFc �b � t j | |� || _ || _ d | _ d| _ t
j � | _ | j | � t � | _ | j j � | j j � | j � y )NF)�QDialog�__init__�install_mode�
plugin_reason�plugin_path�resultr �PluginHandle� pluginObj�setupUi�UserSettings�
user_settings�load�debug�initUi)�self�parentr r �upgrades �&/usr/share/hplip/ui5/plugindiagnose.pyr zPluginDiagnose.__init__+ s� � �����v�&�(���*���������&�3�3�5������T��)�^��������!���� � �"����
� c �l � | j j j | j � | j j j | j
� t
j t j t j � | j t t dd� � � y )N�hp_logo�128x128)�CancelButton�clicked�connect�CancelButton_clicked�
NextButton�NextButton_clicked�signal�SIGINT�SIG_DFL�
setWindowIcon�QIcon�load_pixmap�r s r r zPluginDiagnose.initUi= sr � ����!�!�)�)�$�*C�*C�D������'�'��(?�(?�@��
�
�f�m�m�V�^�^�4�
���5��Y� �!B�C�Dr! c �D � t |� | _ | j � y �N)r
r �setPathIndicators)r �ts r �PathLineEdit_textChangedz'PluginDiagnose.PathLineEdit_textChangedG s � �%�a�=������ r! c �\ � | j |� | j j |� y r3 )�updateStepText�
StackedWidget�setCurrentIndex)r �pages r �displayPagezPluginDiagnose.displayPageP s$ � ����D�!����*�*�4�0r! c �$ � | j � y r3 )�closer1 s r r( z#PluginDiagnose.CancelButton_clickedT s � ��
�
�r! c � � | j j d� | j j d� t }t }t j |t k( |� \ }}|r+| j j � t j k7 rt | | j d� � t � d| _ | j � y # t � w xY w)NFzrFailed to install Plug-in.
Either you have chosen to skip the Plug-in installation or entered incorrect Password.T)r) �
setEnabledr% �PLUGIN_REQUIRED�PLUGIN_REASON_NONEr �run_plugin_commandr � getStatusr �PLUGIN_INSTALLED� FailureUI�_PluginDiagnose__tr�
endWaitCursorr r>