%PDF- %PDF-
Mini Shell

Mini Shell

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

�

=	f� ��L�ddl�ddl�ddl�ddl�ddl�Gd�de�Zy)�)�*�c�\�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zdd�Zy
)�SystrayFramec�0�tj||�y�N)�QFrame�__init__)�self�parents  �$/usr/share/hplip/ui5/systrayframe.pyr
zSystrayFrame.__init__!s������f�%�c	�X�||_||_||_||_||_||_||_||_t|�|_	t|�|_|jjtj�|jjtj�t|j�|_t#|j�|_t|j$�|_t)|j$�|_|j&j-|j*dddd�t)|j$�|_|j&j-|j.dddd�t)|j$�|_|j&j-|j0dddd�|j j-|j$dddd�t#|j�|_t|j2�|_t7|j2�|_|j4j-|j8dddd�t;|j2�|_|j4j-|j<dddd�|j<j?|jAd�tB�|j<j?|jAd�tD�|j<j?|jAd�tF�|j<j?|jAd�tH�tKdd	tLjNtLjN�}	|j4j?|	dddd�|j j-|j2dddd�t#|j�|_(|jPjSd
�|jPjUd�t|jP�|_+t7|jP�|_,|jVj-|jXdddd�t[|jP�|_.|jVj-|j\dddd�|j j-|jPdddd�t#|j�|_/t|j^�|_0|j`jcd�te|j^�|_3|jfjcd
�|j`j-|jfdddd�t7|j^�|_4|jhjcd�|j`j-|jhdddd�tk|j^�|_6|jljcd�|jljod
�|j`j-|jldddd�|j j-|j^dddd�|jj-|jdddd�|jqtrjuddd��|j$jwtrjuddd��|j*jytrjuddd��|j.jytrjuddd��|j0jytrjuddd��|j2jwtrjuddd��|j8jytrjuddd��|jPjwtrjuddd��|jXjytrjuddd��|j^jwtrjuddd��|jfjytrjuddd��|jhjytrjuddd��|jlj{|j�|j*j|t~j�|j��|j.j|t~j�|j��|j0j|t~j�|j��|j<j�t�j�|j��|jfj|t~j�|j��y)Nrr��AllzErrors and WarningszErrors Only�None��(TF�UpdategroupBox�UpdatecheckBox��label_5�textEditrzSystem tray icon visibilityzAlways showzHide when inactivezAlways hidezSystem tray icon messageszMessages to show:z!Monitor button presses on deviceszDevices to monitor:�DialogzUpdate SettingszCheck and notify HPLIP updateszStatus:)H�systray_visible�polling�polling_interval�device_list�systray_messages�upgrade_notify�upgrade_postpone_time�upgrade_msg�QGridLayout�
gridlayoutr	�frame�
setFrameShape�StyledPanel�setFrameShadow�Raised�gridlayout1�	QGroupBox�
groupBox_2�gridlayout2�QRadioButton�ShowAlwaysRadioButton�	addWidget�HideWhenInactiveRadioButton�HideAlwaysRadioButton�
groupBox_3�gridlayout3�QLabel�label_2�	QComboBox�MessageShowComboBox�addItem�_SystrayFrame__tr�SYSTRAY_MESSAGES_SHOW_ALL�)SYSTRAY_MESSAGES_SHOW_ERRORS_AND_WARNINGS�!SYSTRAY_MESSAGES_SHOW_ERRORS_ONLY�SYSTRAY_MESSAGES_SHOW_NONE�QSpacerItem�QSizePolicy�Minimum�MonitorGroupBox�setCheckable�
setEnabled�gridlayout4�label�QListWidget�
listWidget�
groupBox_4r�
setObjectName�	QCheckBoxrr�	QTextEditr�setReadOnly�setWindowTitle�QApplication�	translate�setTitle�setText�setPlainText�clicked�bool�connect�ShowAlwaysRadioButton_clicked�#HideWhenInactiveRadioButton_clicked�HideAlwaysRadioButton_clicked�	activated�int�MessageShowComboBox_activated�UpdatecheckBox_clicked)
rrrrrrr r!r"�
spacerItems
          r
�initUizSystrayFrame.initUi%sq�� /������ 0���&��� 0���,���$9��"�&���%�d�+����D�\��
��
�
� � ��!3�!3�4��
�
�!�!�&�-�-�0�&�t�z�z�2���#�D�J�J�/���&�t���7���%1�$�/�/�%B��"����"�"�4�#=�#=�a��!�A�F�+7����+H��(����"�"�4�#C�#C�A�a��!�L�%1�$�/�/�%B��"����"�"�4�#=�#=�a��!�A�F����"�"�4�?�?�1�Q�q��;�#�D�J�J�/���&�t���7����d�o�o�.������"�"�4�<�<��!�A�a�8�#,�T�_�_�#=�� ����"�"�4�#;�#;�A�a��!�D�� � �(�(����5�)9�;T�U�� � �(�(����3H�)I�Kt�u�� � �(�(����=�)A�Cd�e�� � �(�(����6�):�<V�W� ��B�{�':�':�;�;N�;N�O�
���� � ��A�a��!�4����"�"�4�?�?�1�Q�q��;�(����4������)�)�$�/����'�'��.�&�t�';�';�<����D�0�0�1��
����"�"�4�:�:�a��!�A�6�%�d�&:�&:�;������"�"�4�?�?�1�Q�q��;����"�"�4�#7�#7��!�A�a�@�$�D�J�J�/���)�$�/�/�:������)�)�*:�;�'����8������)�)�*:�;����%�%�d�&9�&9�!�A�a��B��d�o�o�.������"�"�9�-����%�%�d�l�l�A�q�!�Q�?�!�$�/�/�2��
��
�
�#�#�J�/��
�
�!�!�$�'����%�%�d�m�m�Q��1�a�@����"�"�4�?�?�1�Q�q��;����!�!�$�*�*�Q�q��1�5�	
���L�2�2�6�6�4�H�I���� � ��!7�!7��@]�_c�!d�e��"�"�*�*�<�+A�+A�&�-�Y]�+^�_��(�(�0�0��1G�1G��Pd�fj�1k�l��"�"�*�*�<�+A�+A�&�-�Y]�+^�_���� � ��!7�!7��@[�]a�!b�c������\�3�3�F�<O�QU�V�W����%�%�l�&<�&<�V�Eh�jn�&o�p��
�
���<�1�1�&�:O�QU�V�W�	
��� � ��!7�!7��BS�UY�!Z�[����#�#�L�$:�$:�8�Ee�gk�$l�m������\�3�3�H�i��N�O��
�
�"�"�4�#3�#3�4�	
�"�"�*�*�4�0�8�8��9[�9[�\��(�(�0�0��6�>�>�t�?g�?g�h��"�"�*�*�4�0�8�8��9[�9[�\�� � �*�*�3�/�7�7��8Z�8Z�[����#�#�D�)�1�1�$�2M�2M�Nrc�Z�tjd|z�|durd|_yd|_y)NzUpdate HPLIP val =%d FT)�log�debugr �r�bs  r
r]z#SystrayFrame.UpdatecheckBox_clicked�s+���	�	�)�!�+�,���:�"'�D��"&�D�rc��|j�|j�|j�|j�yr)�updateVisibility�updateMessages�updateDeviceList�updateUpgradeSettings�rs r
�updateUizSystrayFrame.updateUi�s2���������������"�"�$rc��|jtk(r|jjd�y|jtk(r|j
jd�y|jjd�y)NT)r�SYSTRAY_VISIBLE_SHOW_ALWAYSr/�
setChecked�"SYSTRAY_VISIBLE_HIDE_WHEN_INACTIVEr1r2rjs r
rfzSystrayFrame.updateVisibility�s^�����#>�>��&�&�1�1�$�7�
�
!�
!�%G�
G��,�,�7�7��=�
�&�&�1�1�$�7rc� �|rt|_yyr)rmrrcs  r
rWz*SystrayFrame.ShowAlwaysRadioButton_clicked�����%@�d�"�1rc� �|rt|_yyr)rorrcs  r
rXz0SystrayFrame.HideWhenInactiveRadioButton_clicked�s���%G�d�"�1rc� �|rt|_yyr)�SYSTRAY_VISIBLE_HIDE_ALWAYSrrcs  r
rYz*SystrayFrame.HideAlwaysRadioButton_clicked�rqrc��|jj|j�}|dk7r|jj|�yy)N���)r8�findDatar�setCurrentIndex)r�is  r
rgzSystrayFrame.updateMessages�s>���$�$�-�-�d�.C�.C�D����7��$�$�4�4�Q�7�rc�r�|j�}t|j|��\}}|r||_yyr)�sender�	value_int�itemDatar)rryr{�mode�oks     r
r\z*SystrayFrame.MessageShowComboBox_activated�s4��������V�_�_�Q�/�0���b�
�$(�D�!�rc��yr�rjs r
rhzSystrayFrame.updateDeviceList�s��rc��|jdur|jjd�y|jjd�y)NTF)r rrnrjs r
riz"SystrayFrame.updateUpgradeSettings�s8�����$�&����*�*�4�0����*�*�5�1rNc�0�tjd||�S)Nr)rOrP)r�s�cs   r
�__trzSystrayFrame.__tr�s���%�%�n�a��;�;rr)�__name__�
__module__�__qualname__r
r_r]rkrfrWrXrYrgr\rhrir:r�rr
rr sI��&�nO�f'�%�8�A�H�A�8�)�
�2�<rrN)�base.g�
base.codes�ui_utils�PyQt5.QtCore�PyQt5.QtGuir	rr�rr
�<module>r�s&��.�����y<�6�y<r

Zerion Mini Shell 1.0