%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/softwareproperties/gtk/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/softwareproperties/gtk/__pycache__/SimpleGtkbuilderApp.cpython-312.pyc

�

;�f�	���dZddlZddlZejdd�ddlmZmZddlmZeje
�ZGd�dej�Z
y)	z�
 SimpleGladeApp.py
 Module that provides an object oriented abstraction to pygtk and gtkbuilder
 Copyright (C) 2009 Michael Vogt
 based on ideas from SimpleGladeBuilder by Sandino Flores Moreno
�N�Gtkz3.0)r�Gio)�setup_uic�,�eZdZd�Zdd�Zd�Zd�Zd�Zy)�SimpleGtkbuilderAppc���tjj|dtjj
��t
|||�|jd|j�y)Nzcom.ubuntu.SoftwareProperties)�application_id�flags�activate)	r�Application�__init__r�ApplicationFlags�
FLAGS_NONEr�connect�on_activate)�self�path�domains   �L/usr/lib/python3/dist-packages/softwareproperties/gtk/SimpleGtkbuilderApp.pyr
zSimpleGtkbuilderApp.__init__ sN����� � ��6U�'*�';�';�'F�'F�	!�	H���t�V�$����Z��!1�!1�2�Nc��|j|j�|jj�s|jj�yy�N)�
add_window�window_main�
is_visible�show)r�datas  rrzSimpleGtkbuilderApp.on_activate&s=������(�(�)����*�*�,����!�!�#�-rc��	tjj|d�y#t$r|j	�YywxYw)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)rr�run�KeyboardInterrupt�on_keyboard_interrupt�rs rrzSimpleGtkbuilderApp.run,s6��	)��O�O����d�+�� �	)��&�&�(�	)�s� #�?�?c��y)z�
        This method is called by the default implementation of run()
        after a program is finished by pressing Control-C.
        N�r"s rr!z)SimpleGtkbuilderApp.on_keyboard_interrupt:s��
	
rc�B�tjj|�y)a
        Quit processing events.
        The default implementation calls Gtk.main_quit()

        Useful for applications that needs a non gtk main loop.
        For example, applications based on gstreamer needs to override
        this method with gst.main_quit()
        N)rr�quitr"s rr&zSimpleGtkbuilderApp.quitAs��	�����T�"rr)�__name__�
__module__�__qualname__r
rrr!r&r$rrrrs��3�$�)�
�	#rr)�__doc__�logging�gi�require_version�
gi.repositoryrr�softwareproperties.gtk.utilsr�	getLoggerr'�LOGrrr$rr�<module>r2sL���*�	�����5�%� �"�1��G���h���,#�#�/�/�,#r

Zerion Mini Shell 1.0