%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__/DialogAdd.cpython-312.pyc

�

���cZ��~�ddlZddlZejdd�ddlmZddlmZddlmZddl	m
Z
Gd�d	�Zy)
�N�Gtkz3.0)r)�gettext)�SourceEntry)�setup_uic��eZdZd�Zd�Zd�Zy)�	DialogAddc��||_||_||_t|tj
j
|dd�d��|j|_|jj|j�|j|_|j|_
|jjd|j�|rW|j �d|j"j$�d|j&�d|j"j(dj*��}nd}t-d	�d
|zz}|j.j1|�y)z]
    Initialize the dialog that allows to add a new source entering the
    raw apt line
    �
gtkbuilderz
dialog-add.uizsoftware-properties)�domain�changed� rz$deb http://ftp.debian.org sarge mainz[The APT line includes the type, location and components of a repository, for example  '%s'.z	<i>%s</i>N)�sourceslist�parent�datadirr�os�path�join�dialog_add_custom�dialog�set_transient_for�entry_source_line�entry�button_add_source�
button_add�connect�
check_line�binary_type�source_template�base_uri�codename�
components�name�_�label_example_line�	set_label)�selfrrr�distro�example�msgs       �B/usr/lib/python3/dist-packages/softwareproperties/gtk/DialogAdd.py�__init__zDialogAdd.__init__'s	��
#�D���D�K��D�L��T�2�7�7�<�<����G�Pe�f��(�(�D�K��K�K�!�!�$�+�+�.��'�'�D�J��,�,�D�O��J�J���y�$�/�/�2�
�#)�#5�#5�#)�#9�#9�#B�#B�#)�?�?�#)�#9�#9�#D�#D�Q�#G�#L�#L�N��
9��
�
-�.�1<�w�1F�H�C����%�%�c�*�c���|jj�}|jj�|tjj
k(r|jj�dz}|Sd}|S)N�
)r�run�hider�ResponseType�OKr�get_text)r&�res�lines   r*r/z
DialogAdd.runDs`��
�+�+�/�/�
�C��K�K����
�c���!�!�!��z�z�"�"�$�t�+���K����Kr,c�X�|jj�dz}|jd�r|jj	d�yt|�}|jdk(s|jdk(r|jj	d�y|jj	d�y)zb
    Check for a valid apt line and set the sensitiveness of the
    button 'add' accordingly
    r.zppa:TNF)rr3�
startswithr�
set_sensitiver�invalid�disabled)r&�argsr5�source_entrys    r*rzDialogAdd.check_lineMs���
�:�:��� �4�'�D����v��
�o�o�#�#�D�)���t�$�L����t�#�|�'<�'<��'D����%�%�e�,����%�%�d�+r,N)�__name__�
__module__�__qualname__r+r/r�r,r*rr&s��+�:�
,r,r)r�gi�require_version�
gi.repositoryrrr#�aptsources.sourceslistr�softwareproperties.gtk.utilsrrr@r,r*�<module>rFs7��4
�	�����5�%� �� �.��4,�4,r,

Zerion Mini Shell 1.0