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

�

�|f����ddlZddlZejdd�ddlmZddlmZddlmZGd�dej�Z
Gd	�d
�Zy)�N�Gtkz3.0)r)�Deb822SourceEntry)�setup_uic�2��eZdZd�fd�	Zd�Zd�Zd�Z�xZS)�_CustomSourceEntryFieldc�4��ttj|��||_tj
dd��|_tj
dd��|_tjjd�|_
|�|jj|�|�|jj|�|jd�|j|jddd	d	�|j|jd	dd	d	�|j|jd
dd	d	�|jd|�|jjd|�|jjd|�|jjd
|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.pyrz _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|�|jj�d}|jj	|d�y)Nrr)�
get_parent�remover�get_default_size�resize)r$�data�parent�widths    r)r#z:_CustomSourceEntryField._button_del_field_clicked_callback7sR�����"������"�"�6�*����,�,�.�q�1�������5�!�$r*c�6�|jj�S�N)r�get_text�r$s r)�get_keyz_CustomSourceEntryField.get_key?����~�~�&�&�(�(r*c�6�|jj�Sr4)rr5r6s r)�get_valz_CustomSourceEntryField.get_valBr8r*�NN)�__name__�
__module__�__qualname__rr#r7r:�
__classcell__)r(s@r)rrs���K�2%�)�)r*rc�J�eZdZd�Zd�Zdd�Zd�Zd�Zd�Zd�Z	d	�Z
d
�Zd�Zy)
�DialogEditDeb822c� �||_||_d|_t|tj
j
|dd�d��|j|_|jj|�|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$r1rErF�datadirs     r)rzDialogEditDeb822.__init__Gsv��&���(��� $������G�G�L�L��,�0N�O�(�	
�
�+�+��	��	�	�#�#�F�+��1�1�3��&�&�(r*c�
�|jjdj|jj��|j
jdj|jj��|jjdj|jj��|jjdj|jj��|jj|jjj��|jjjj!�D]\}}|dvs�|j#||���y)N� )�Types�URIs�Suites�
Components)r&r')�entry_typesrrJrF�types�
entry_uris�uris�entry_suites�suites�entry_comps�comps�
entry_comment�comment�rstrip�section�tags�items�!_append_custom_source_entry_field)r$r&r's   r)rNz5DialogEditDeb822._populate_with_existing_source_entryWs�����!�!�#�(�(�4�+<�+<�+B�+B�"C�D���� � ����$�*;�*;�*@�*@�!A�B����"�"�3�8�8�D�,=�,=�,D�,D�#E�F����!�!�#�(�(�4�+<�+<�+B�+B�"C�D����#�#�D�$5�$5�$=�$=�$D�$D�$F�G��+�+�3�3�8�8�>�>�@�	M�J�C���C�C��6�6�3�e�6�L�	Mr*Nc��tjdd��}t|j|j||�}|j|�|jj|d�|jj�y)NF)�
selectable�activatable���)	r�
ListBoxRowrrL�_input_changed_callback�add�list_box_additional_fields�insert�show_all)r$r&r'�row�fields     r)rez2DialogEditDeb822._append_custom_source_entry_fieldbsd���n�n��5�A��'��I�I�t�3�3�S�%�
��	������'�'�.�.�s�B�7��'�'�0�0�2r*c��|jj�}|D�cgc]}|j�d��}}|D�cgc].}t|j�|j	�f�s�-|��0c}Scc}wcc}w)Nr)rm�get_children�anyr7r:)r$�rows�r�fields�fs     r)�_get_custom_source_entry_fieldsz0DialogEditDeb822._get_custom_source_entry_fieldsmsf���.�.�;�;�=��/3�4�!�!�.�.�"�1�%�4��4�!�E�a�S�!�)�)�+�q�y�y�{�)C�%D��E�E��5��Es�A5�.A:�.A:c�H�d|jj�|jj�|jj�|jj�fvry|j�D]&}d|j
�|j�fvs�&yy)N�FT)rWr5rYr[r]ryr7r:)r$rqs  r)�_is_current_input_validz(DialogEditDeb822._is_current_input_validss���
�$�"�"�+�+�-��/�/�*�*�,��#�#�,�,�.��"�"�+�+�-�/�/���9�9�;�	�E��e�m�m�o�u�}�}��7�7��	�r*c��|j|j|j|j|jfD]}|jd|j�� |jjd|j�y)Nrr)	rWrYr[r]r_r"rk�button_add_field�"_button_add_field_clicked_callback)r$�entrys  r)rOz*DialogEditDeb822._connect_signal_callbacks�ss���&�&�����9J�9J��&�&��(:�(:�<�	C�E��M�M�)�T�%A�%A�B�	C�	
���%�%�i�&*�&M�&M�	Or*c�V�|jj|j��yr4)�button_edit_ok�
set_sensitiver|�r$r0s  r)rkz(DialogEditDeb822._input_changed_callback�s�����)�)�$�*F�*F�*H�Ir*c�$�|j�yr4)rer�s  r)rz3DialogEditDeb822._button_add_field_clicked_callback�s���.�.�0r*c�l�td|jj�}|jj	�j�|_|jj	�j�|_|jj	�j�|_
|jj	�j�|_|jj	�|_|j�D]-}|j!�|j"|j%�<�/|Sr4)rrF�filerWr5�splitrXrYrZr[r\r]r^r_r`ryr:rbr7)r$rFrqs   r)�_source_entry_from_inputz)DialogEditDeb822._source_entry_from_input�s���(��t�/@�/@�/E�/E�F��!�-�-�6�6�8�>�>�@��� �O�O�4�4�6�<�<�>���"�/�/�8�8�:�@�@�B���!�-�-�6�6�8�>�>�@���#�1�1�:�:�<����9�9�;�	D�E�49�M�M�O�L� � �����1�	D��r*c���|jj�}|tjjk(r|j�|_|jj�|Sr4)rL�runr�ResponseType�OKr�rG�hide)r$�ress  r)r�zDialogEditDeb822.run�sI���i�i�m�m�o���#�"�"�%�%�%�$(�$A�$A�$C�D�!��	�	�����
r*r;)
r<r=r>rrNreryr|rOrkrr�r��r*r)rArAFs8��)� 	M�	3�F��O�J�1��r*rA)rH�gi�require_version�
gi.repositoryr�aptsources.sourceslistr�softwareproperties.gtk.utilsrrrrAr�r*r)�<module>r�sG��$
�	�����5�%� ��4��
&)�c�h�h�&)�R]�]r*

Zerion Mini Shell 1.0