Logo Search packages:      
Sourcecode: audit version File versions  Download package

def dialog_base::DialogBase::__init__ (   self,
  toplevel_name,
  notebook_name = None 
) [inherited]

Create a window from the glade file and get references to widgets.

If notebook_name is not None, use it in validate_values().

Definition at line 30 of file dialog_base.py.

00030                                                            :
        '''Create a window from the glade file and get references to widgets.

        If notebook_name is not None, use it in validate_values().

        '''
        glade_xml = gtk.glade.XML(settings.glade_file_path, toplevel_name)
        for name in self._glade_widget_names:
            w = glade_xml.get_widget(name)
            assert w is not None, 'Widget %s not found in glade file' % name
            setattr(self, name, w)
        # This name is special :)
        self.window = glade_xml.get_widget(toplevel_name)
        if notebook_name is None:
            self.__notebook_widget = None
        else:
            self.__notebook_widget = glade_xml.get_widget(notebook_name)
            assert self.__notebook_widget is not None

    def destroy(self):


Generated by  Doxygen 1.6.0   Back to index