%PDF- %PDF-
Direktori : /lib/python3/dist-packages/softwareproperties/gtk/__pycache__/ |
Current File : //lib/python3/dist-packages/softwareproperties/gtk/__pycache__/DialogEditDeb822.cpython-312.pyc |
� �|f� � � � d dl Z d dlZ ej dd� d dlmZ d dlmZ d dlmZ G d� dej � Z G d � d � Zy)� N�Gtkz3.0)r )�Deb822SourceEntry)�setup_uic �2 � � e Zd Zd� fd� Zd� Zd� Zd� Z� xZS )�_CustomSourceEntryFieldc �4 �� t t j | � � || _ t j dd�� | _ t j dd�� | _ t j j d� | _ |�| j j |� |�| j j |� | j d� | j | j ddd d � | j | j d dd d � | j | j d dd d � | j d|� | j j d|� | j j d|� | j j d | j � y )N� field_key�Key)�name�placeholder_text�field_value�Valuez gtk-delete� r � � �destroy�changed�clicked)�superr �Grid�__init__�window�Entry� entry_key� entry_val�Button�new_from_stock� button_delete�set_text�set_column_spacing�attach�connect�"_button_del_field_clicked_callback)�selfr �input_changed_callback�key�value� __class__s ��I/usr/lib/python3/dist-packages/softwareproperties/gtk/DialogEditDeb822.pyr z _CustomSourceEntryField.__init__ s6 �� � �c�h�h��&�(��������e�L������ ��P��� �Z�Z�6�6�|�D����?��N�N�#�#�C�(����N�N�#�#�E�*�����#����D�N�N�A�q�!�Q�/����D�N�N�A�q�!�Q�/����D�&�&��1�a��3����Y� 6�7������y�*@�A������y�*@�A����"�"�9�"&�"I�"I� K� c �� � | j � }|j � j |� | j j � d }| j j |d� y )Nr r )� get_parent�remover �get_default_size�resize)r$ �data�parent�widths r) r# z:_CustomSourceEntryField._button_del_field_clicked_callback7 sR � ����"������"�"�6�*� ���,�,�.�q�1�������5�!�$r* c �6 � | j j � S �N)r �get_text�r$ s r) �get_keyz_CustomSourceEntryField.get_key? � � ��~�~�&�&�(�(r* c �6 � | j j � S r4 )r r5 r6 s r) �get_valz_CustomSourceEntryField.get_valB r8 r* �NN)�__name__� __module__�__qualname__r r# r7 r: � __classcell__)r( s @r) r r s �� �K�2%�)�)r* r c �J � e Zd Zd� Zd� Zdd�Zd� Zd� Zd� Zd� Z d � Z d � Zd� Zy) �DialogEditDeb822c � � || _ || _ d | _ t | t j j |dd� d�� | j | _ | j j |� | j � | j � y )N� gtkbuilderzdialog-edit-deb822-source.uizsoftware-properties)�domain)�sourceslist�source_entry�new_source_entryr �os�path�join�dialog_edit_deb822�main�set_transient_for�$_populate_with_existing_source_entry�_connect_signal_callbacks)r$ r1 rE rF �datadirs r) r zDialogEditDeb822.__init__G sv � �&���(��� $������G�G�L�L��,�0N�O�(� � �+�+�� �� � �#�#�F�+��1�1�3��&�&�(r* c � � | j j dj | j j � � | j j dj | j j � � | j j dj | j j � � | j j dj | j j � � | j j | j j j � � | j j j j! � D ] \ }}|dvs�| j# ||�� � y )N� )�Types�URIs�Suites� Components)r&