î Í+eTôã@s5dZddlZddlZGdd„dƒZdS)zŠ SimpleGladeApp.py Module that provides an object oriented abstraction to pygtk and libglade. Copyright (C) 2004 Sandino Flores Moreno éNc@s4eZdZdd„Zdd„Zdd„ZdS)ÚSimpleGtkbuilderAppcCs«tjƒ|_|jj|ƒ|jj|ƒ|jj|ƒxe|jjƒD]T}tt|ƒtj ƒr’tj j |ƒ}t |||ƒqOt j d|ƒqOWdS)Nz"WARNING: can not get name for '%s')ÚgtkZBuilderZbuilderZset_translation_domainZ add_from_fileZconnect_signalsZ get_objectsÚ issubclassÚtypeZ BuildableZget_nameÚsetattrÚloggingÚdebug)ÚselfÚpathZdomainÚoÚname©r úA/usr/lib/python3/dist-packages/DistUpgrade/SimpleGtkbuilderApp.pyÚ__init__szSimpleGtkbuilderApp.__init__c Cs1ytjƒWntk r,|jƒYnXdS)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.runcCsdS)z‰ This method is called by the default implementation of run() after a program is finished by pressing Control-C. Nr )r r r rr7sz)SimpleGtkbuilderApp.on_keyboard_interruptN)Ú__name__Ú __module__Ú __qualname__rrrr r r rrs  r)Ú__doc__rrrr r r rÚs