%PDF- %PDF-
Mini Shell

Mini Shell

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

�

=	f]���ddlZddlZddlZddl�ddlmZmZmZmZddl	�ddl
�ddl�ddlm
Z
dZGd�dee
�Zy)	�N)�*)�device�utils�pkit�os_utils�)�	Ui_Dialogz>http://hplipopensource.com/hplip-web/install/manual/index.htmlc�>�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d
d	�Z
y)�
UpgradeDialogc��tj||�||_||_d|_|j|||�|j
�y)NF)�QDialog�__init__�distro_tier�msg�result�setupUi�initUi)�self�parentrrs    �%/usr/share/hplip/ui5/upgradedialog.pyrzUpgradeDialog.__init__+sA������v�&�&������������T�;��,����
�c��|jjj|j�|jjj|j
�|jjtj|j�|jjtj|j�|jjtj|j�tjtjtj �|j#t%t'dd���y)N�hp_logo�128x128)�
NextButton�clicked�connect�NextButton_clicked�CancelButton�CancelButton_clicked�installRadioBtton�toggled�bool�installRadioBtton_toggled�remindRadioBtton�remindRadioBtton_toggled�dontRemindRadioBtton�dontRemindRadioBtton_toggled�signal�SIGINT�SIG_DFL�
setWindowIcon�QIcon�load_pixmap�rs rrzUpgradeDialog.initUi4s��������'�'��(?�(?�@����!�!�)�)�$�*C�*C�D����&�&�t�,�4�4�T�5S�5S�T����%�%�d�+�3�3�D�4Q�4Q�R��!�!�)�)�$�/�7�7��8Y�8Y�Z��
�
�f�m�m�V�^�^�4�	
���5��Y�	�!B�C�Drc�z�|dur|jjd�y|jjd�y�NTF)r!�
setChecked�r�
radio_enableds  rr$z'UpgradeDialog.installRadioBtton_toggledBs2���D� ��"�"�-�-�d�3��"�"�-�-�e�4rc���|dur7|jjd�|jjd�y|jjd�|jjd�yr1)r%r2�daysSpinBox�
setEnabledr3s  rr&z&UpgradeDialog.remindRadioBtton_toggledIsZ���D� ��!�!�,�,�T�2����'�'��-��!�!�,�,�U�3����'�'��.rc�z�|dur|jjd�y|jjd�yr1)r'r2r3s  rr(z*UpgradeDialog.dontRemindRadioBtton_toggledRs2���D� ��%�%�0�0��6��%�%�0�0��7rc	�F�|jj�rKtjd�tjddd�d}t
||j|���n�|jj�r�t|jj��}tjdt|�z�tj�t|�dzdzdzz}tjdd	tt|���n�tjd
|jz�|jj!d�|jdk7r/tjd
�t#j$t&�n�t#j(�}|�7t#j*d�r"|dz}t-j.|�d|_n3tj3d|z�t5||jd��|j7�y)Nz6HPLIP Upgrade, selected Don't remind again radiobutton�upgrade�notify_upgrade�falsez^Check for HPLIP updates is disabled. To enable it again, change 'Settings' in 'HP systemtray' z:HPLIP Upgrade, selected remind later radiobutton  days= %d��<�pending_upgrade_timez;HPLIP Upgrade, selected Install radiobutton  distro_type=%dFrz$OK pressed for tier 2 distro pressedz
hp-upgradez 'hp-upgrade -w'Tz3Failed to run hp-upgrade command from terminal =%s zFailed to run hp-upgrade)r'�	isChecked�log�debug�	user_conf�set�	SuccessUI�_UpgradeDialog__trr%�strr6�value�int�timerrr7r�openURL�MANUAL_INSTALL_LINK�get_terminal�whichr�executer�error�	FailureUI�close)rr�
schedule_days�	next_time�terminal_cmd�cmds      rrz UpgradeDialog.NextButton_clickedYs����$�$�.�.�0��I�I�N�O��M�M�)�%5�w�?�q�C��d�D�I�I�c�N�+�
�
"�
"�
,�
,�
.��� 0� 0� 6� 6� 8�9�M��I�I�R�UX�Yf�Ug�h�i��	�	��s�=�'9�2�'=��'B�B�'F�G�I��M�M�)�%;�S��Y��=P�Q��I�I�S�UY�Ue�Ue�e�f��O�O�&�&�u�-����1�$��	�	�@�A��
�
�1�2� %�1�1�3���+����L�0I�&�);�;�C��$�$�S�)�"&�D�K��I�I�S�T`�`�a��d�D�I�I�.H�$I�J��
�
�rc�N�tjd�|j�y)Nz	User exit)rArBrRr/s rr z"UpgradeDialog.CancelButton_clickedzs���	�	�+���
�
�rNc�0�tjd||�S)Nr)�qApp�	translate)r�s�cs   r�__trzUpgradeDialog.__tr~s���~�~�o�a��2�2r)N)�__name__�
__module__�__qualname__rrr$r&r(rr rF�rrrr*s,���E�5�/�8��B�3rr)�osrJr)�base.g�baserrrr�ui_utils�PyQt5.QtCore�PyQt5.QtGui�upgradedialog_baser	rLr
rrarr�<module>risA��.
��
��.�.����*�V��U3�G�Y�U3r

Zerion Mini Shell 1.0