OwlCyberSecurity - MANAGER
Edit File: SimpleGtk3builderApp.cpython-38.pyc
U B��] � @ 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 �rft j � |�}t| ||� q8t� d| � q8d S )Nz"WARNING: can not get name for '%s')r ZBuilderZbuilderZset_translation_domainZ add_from_fileZconnect_signalsZget_objects� issubclass�typeZ BuildableZget_name�setattr�logging�debug)�self�pathZdomain�o�name� r �B/usr/lib/python3/dist-packages/DistUpgrade/SimpleGtk3builderApp.py�__init__ s zSimpleGtkbuilderApp.__init__c C s. zt �� W n tk r( | �� Y nX dS )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 Z gi.repositoryr r r r r r �<module> s