Logo Search packages:      
Sourcecode: qa-assistant version File versions  Download package

def gnomeglade::Base::__init__ (   self,
  file,
  root 
)

Load the widgets from the node 'root' in file 'file'.

Automatically connects signal handlers named 'on_*'.

Reimplemented in gnomeglade::Component, and gnomeglade::GtkApp.

Definition at line 44 of file gnomeglade.py.

00044                                   :
        """Load the widgets from the node 'root' in file 'file'.

        Automatically connects signal handlers named 'on_*'.
        """

        self.xml = gtk.glade.XML(file, root, gettext.textdomain() )
        handlers = {}
        for h in filter(lambda x:x.startswith("on_"), dir(self.__class__)):
            handlers[h] = getattr(self, h)
        self.xml.signal_autoconnect( handlers )
        self.widget = getattr(self, root)
        self.widget.set_data("pyobject", self)

    def __getattr__(self, key):


Generated by  Doxygen 1.6.0   Back to index