
    >Ic                     0    d Z ddlZddlmZ  G d d      Zy)z
 SimpleGladeApp.py
 Module that provides an object oriented abstraction to pygtk and libglade.
 Copyright (C) 2004 Sandino Flores Moreno
    N)Gtkc                       e Zd Zd Zd Zd Zy)SimpleGtkbuilderAppc                    t        j                         | _        | j                  j                  |       | j                  j	                  |       | j                  j                  |        | j                  j                         D ]j  }t        t        |      t         j                        r-t         j                  j                  |      }t        | ||       St        j                  d|z         l y )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names        B/usr/lib/python3/dist-packages/DistUpgrade/SimpleGtk3builderApp.py__init__zSimpleGtkbuilderApp.__init__   s    {{}++F3""4($$T*))+ 	HA$q'3==1}}--a0dA&BQFG	H    c                 l    	 t        j                          y# t        $ r | j                          Y yw xY 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   s    r   runzSimpleGtkbuilderApp.run*   s+    	)HHJ  	)&&(	)s    33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    r   r   z)SimpleGtkbuilderApp.on_keyboard_interrupt8   s    
 	r   N)__name__
__module____qualname__r   r!   r   r#   r   r   r   r      s    
H)r   r   )__doc__r   gi.repositoryr   r   r#   r   r   <module>r)      s   *  ! !r   