%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/softwareproperties/gtk/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/softwareproperties/gtk/__pycache__/DialogUaDetach.cpython-312.pyc

�

���c 	��r�ddlZddlmZddlZejdd�ddlmZddlmZGd�d�Z	y)	�N)�gettext�Gtkz3.0)r)�setup_uic�6�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	y)	�DialogUaDetachc���t|tjj|dd�d��||_|j
|_|jj|�d|_y)zsetup up the gtk dialog�
gtkbuilderzdialog-ua-detach.uizsoftware-properties)�domainFN)	r�os�path�join�	ua_object�dialog_ua_detach�dialog�set_transient_for�	detaching)�self�parent�datadirrs    �G/usr/lib/python3/dist-packages/softwareproperties/gtk/DialogUaDetach.py�__init__zDialogUaDetach.__init__sN����r�w�w�|�|�G�\�;P�Q�Zo�p�"����+�+������%�%�f�-����c�l�|jj�|jj�y�N)r�run�hide�rs rrzDialogUaDetach.run(s �������������rc�P�|jj|j�yr)�
button_detach�
set_sensitiverrs r�update_statezDialogUaDetach.update_state,s�����(�(�T�^�^�);�<rc�����jryd�_�jjd��fd�}�fd�}�jj	||dd���j�y)NT�c�l���jjtjj�yr)r�responser�ResponseType�OKrs�r�on_replyz'DialogUaDetach.detach.<locals>.on_reply5s!����K�K� � ��!1�!1�!4�!4�5rc���t|��jjtd��d�_�j�y)Nz"Failed to detach. Please try againF)�print�label_detach_error�set_text�_rr!)�errorrs �r�on_errorz'DialogUaDetach.detach.<locals>.on_error7s7����%�L��#�#�,�,�Q�/S�-T�U�"�D�N����rz%com.canonical.UbuntuAdvantage.ManageriX)�
reply_handler�
error_handler�dbus_interface�timeout)rr+r,r�Detachr!)rr(r/s`  r�detachzDialogUaDetach.detach/sh����>�>��������(�(��,�	6�	 �	
�����H�H�^E�OR��	S����rc�$�|j�yr)r!)r�entrys  r�on_token_entry_changedz%DialogUaDetach.on_token_entry_changed@s�����rc�$�|j�yr)r5�r�buttons  r�on_detach_clickedz DialogUaDetach.on_detach_clickedCs�����
rc�j�|jjtjj�yr)rr%rr&�CANCELr:s  r�on_cancel_clickedz DialogUaDetach.on_cancel_clickedFs �������S�-�-�4�4�5rN)
�__name__�
__module__�__qualname__rrr!r5r8r<r?�rrrrs%����=��"��6rr)
rrr-�gi�require_version�
gi.repositoryr�softwareproperties.gtk.utilsrrrCrr�<module>rHs4��&
� �	�����5�%� ���*6�*6r

Zerion Mini Shell 1.0