/ Published in: Python
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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()