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 :  /lib/python3/dist-packages/orca/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/orca/__pycache__/orca_gtkbuilder.cpython-310.pyc
o

S�bh�@sJdZdZdZdZdZdZddlZddlmZd	d
l	m
Z
Gdd�d�ZdS)
z)Displays a GUI for the user to quit Orca.z$Id$z
$Revision$z$Date$z-Copyright (c) 2005-2009 Sun Microsystems Inc.�LGPL�N)�Gtk�)�_c@s8eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�ZdS)
�GtkBuilderWrappera�
    Superclass for GtkBuilder based applications. Just derive from this
    and your subclass should create methods whose names correspond to
    the signal handlers defined in the GtkBuilder file. Any other attributes
    in your class will be safely ignored.

    This class will give you the ability to do:
        subclass_instance.GtkWindow.method(...)
        subclass_instance.widget_name...
    cCs�t��|_|j�t���|j�|�|j�|�|_|j�	�D]}|�
|�}q|��i}t|j
�D]	}t||�||<q2|j�|�dS)N)r�Builder�builder�set_translation_domain�gettext�
textdomain�
add_from_file�
get_object�	gtkWindow�get_objects�localize_widget�
set_orca_icon�dir�	__class__�getattr�connect_signals)�self�fileName�
windowName�obj�success�instance_attributes�	attribute�r�6/usr/lib/python3/dist-packages/orca/orca_gtkbuilder.py�__init__-s
zGtkBuilderWrapper.__init__cCs|tj��}z%|�ddd�}|�ddd�}|�ddd�}|�ddd�}|�ddd�}WnYdStj�|||||f�dS)	zvGet the icon in all sizes from the current theme and set them as
        default for all application windows.
        �orca�r��� �0N)r�	IconTheme�get_default�	load_icon�Window�set_default_icon_list)r�
icon_theme�icon16�icon22�icon24�icon32�icon48rrrrBs

�zGtkBuilderWrapper.set_orca_iconcCs(|j�|�}|durtd|d��|S)a(Return the requested widget. This routine has been introduced
        (and calls to it made by the Orca GtkBuilder sub-classes), to prevent
        "No class attribute" pychecker errors caused when using __getattr__.

        Arguments:
        - attribute: name of the widget to return.
        N�Widget [�] not found)rr
�AttributeError�rr�widgetrrr�
get_widgetWs	zGtkBuilderWrapper.get_widgetcCs2|j�|�}|durtd|d��||j|<|S)Nr1r2)rr
r3�__dict__r4rrr�__getattr__fs

zGtkBuilderWrapper.__getattr__c	Cs�z
|��}|��}Wnd}d}Yt|tj�rdSz|��}|r-t|�r-|�t|��Wn)z|�	�}WnYYdS|rWt|�rW|rP|�
t|��n|�t|��Y|r_|�d�dS)z�Force the localization of the label/title of GtkBuilder objects

        Arguments:
        - obj: the GtkBuilder object whose label or title should be localized
        FNT)
�get_use_markup�get_use_underline�
isinstancer�Frame�	get_title�len�	set_titler�	get_label�
set_markup�	set_label�set_use_underline)rr�	useMarkup�useUnderline�title�textrrrrns4��
z!GtkBuilderWrapper.localize_widgetN)	�__name__�
__module__�__qualname__�__doc__rrr6r8rrrrrr!sr)rK�__id__�__version__�__date__�
__copyright__�__license__r
�
gi.repositoryr�	orca_i18nrrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit