Return to Snippet

Revision: 4181
at November 2, 2007 05:07 by arcturus


Initial Code
class MyGUI:
    """ Main class for this application (holds the GUI) """
    def __init__ (self):
        self.tree = gtk.glade.XML("myGui.glade")
        self.tree.signal_autoconnect(self)
   
    def on_mywindow_delete (self, widget, dummy):
        gtk.main_quit()

if __name__ == "__main__":
    h = MyGUI()
    gtk.main()

Initial URL

                                

Initial Description

                                

Initial Title
Basic glade file load

Initial Tags
python

Initial Language
Python