Logo Search packages:      
Sourcecode: rapid-photo-downloader version File versions  Download package

def rapid::gnomeglade::Base::__init__ (   self,
  file,
  root,
  override = {} 
) [inherited]

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

Automatically connects signal handlers named 'on_*'.

Reimplemented in rapid::gnomeglade::Component.

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_*'.
        """
        global _
        _ = Configi18n._
        if Configi18n.locale_path:
            gtk.glade.bindtextdomain(config.APP_NAME, Configi18n.locale_path)
        gtk.glade.textdomain(config.APP_NAME)
        self.xml = gtk.glade.XML(file, root, typedict=override )
        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)


Generated by  Doxygen 1.6.0   Back to index