%PDF- %PDF-
Direktori : /lib/python3/dist-packages/softwareproperties/gtk/__pycache__/ |
Current File : //lib/python3/dist-packages/softwareproperties/gtk/__pycache__/DialogUaDetach.cpython-312.pyc |
� ���c � �r � d dl Z d dlmZ d dlZ ej dd� d dlmZ d dlmZ G d� d� Z y) � N)�gettext�Gtkz3.0)r )�setup_uic �6 � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z y) �DialogUaDetachc �� � t | t j j |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�datadirr s �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 � | j j � | j j � y �N)r �run�hide�r s r r zDialogUaDetach.run( s � ������������r c �P � | j j | j � y r )� button_detach� set_sensitiver r s r �update_statezDialogUaDetach.update_state, s � ����(�(�T�^�^�);�<r c �� � � � j ry d� _ � j j d� � fd�}� fd�}� j j ||dd�� � j � y )NT� c �l �� � j j t j j � y r )r �responser �ResponseType�OKr s �r �on_replyz'DialogUaDetach.detach.<locals>.on_reply5 s! �� ��K�K� � ��!1�!1�!4�!4�5r c � �� t | � �j j t d� � d�_ �j � y )Nz"Failed to detach. Please try againF)�print�label_detach_error�set_text�_r r! )�errorr s �r �on_errorz'DialogUaDetach.detach.<locals>.on_error7 s7 �� ��%�L��#�#�,�,�Q�/S�-T�U�"�D�N����r z%com.canonical.UbuntuAdvantage.ManageriX )� reply_handler� error_handler�dbus_interface�timeout)r r+ r, r �Detachr! )r r( r/ s ` r �detachzDialogUaDetach.detach/ sh �� ��>�>��������(�(��,� 6� � �����H�H� ^E� OR�� S����r c �$ � | j � y r )r! )r �entrys r �on_token_entry_changedz%DialogUaDetach.on_token_entry_changed@ s � ����r c �$ � | j � y r )r5 �r �buttons r �on_detach_clickedz DialogUaDetach.on_detach_clickedC s � ���� r c �j � | j j t j j � y r )r r% r r&