0x1949 Team - FAZEMRX - MANAGER
Edit File: SimpleGtk3builderApp.cpython-310.pyc
o >I�c � @ s* d Z ddlZddlmZ G dd� d�ZdS )z� SimpleGladeApp.py Module that provides an object oriented abstraction to pygtk and libglade. Copyright (C) 2004 Sandino Flores Moreno � N)�Gtkc @ s$ e Zd Zdd� Zdd� Zdd� ZdS )�SimpleGtkbuilderAppc C sz t �� | _| j�|� | j�|� | j�| � | j�� D ]}tt|�t j �r3t j � |�}t| ||� qt� d| � qd S )Nz"WARNING: can not get name for '%s')r �Builder�builder�set_translation_domain� add_from_file�connect_signals�get_objects� issubclass�type� Buildable�get_name�setattr�logging�debug)�self�path�domain�o�name� r �B/usr/lib/python3/dist-packages/DistUpgrade/SimpleGtk3builderApp.py�__init__ s �zSimpleGtkbuilderApp.__init__c C s, zt �� W dS ty | �� Y dS w )z� Starts the main loop of processing events checking for Control-C. The default implementation checks wheter a Control-C is pressed, then calls on_keyboard_interrupt(). Use this method for starting programs. N)r �main�KeyboardInterrupt�on_keyboard_interrupt�r r r r �run* s �zSimpleGtkbuilderApp.runc C s dS )z� This method is called by the default implementation of run() after a program is finished by pressing Control-C. Nr r r r r r 8 s z)SimpleGtkbuilderApp.on_keyboard_interruptN)�__name__� __module__�__qualname__r r r r r r r r s r )�__doc__r � gi.repositoryr r r r r r �<module> s