%PDF- %PDF-
Direktori : /lib/python3/dist-packages/DistUpgrade/__pycache__/ |
Current File : //lib/python3/dist-packages/DistUpgrade/__pycache__/SimpleGtk3builderApp.cpython-312.pyc |
� >I�c � �0 � d Z ddlZddlmZ G d� d� Zy)z� SimpleGladeApp.py Module that provides an object oriented abstraction to pygtk and libglade. Copyright (C) 2004 Sandino Flores Moreno � N)�Gtkc � � e Zd Zd� Zd� Zd� Zy)�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__zSimpleGtkbuilderApp.__init__ s� � ��{�{�}������+�+�F�3����"�"�4�(����$�$�T�*����)�)�+� H�A��$�q�'�3�=�=�1��}�}�-�-�a�0����d�A�&�� � �B�Q�F�G� H� c �l � t j � y# t $ r | j � Y yw xY 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 �runzSimpleGtkbuilderApp.run* s+ � � )��H�H�J�� � )��&�&�(� )�s � �3�3c � � 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