Posted By

arcturus on 11/02/07


Tagged

python gtk pygtk glade


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

xathin


Basic glade file load


 / Published in: Python
 

  1. class MyGUI:
  2. """ Main class for this application (holds the GUI) """
  3. def __init__ (self):
  4. self.tree = gtk.glade.XML("myGui.glade")
  5. self.tree.signal_autoconnect(self)
  6.  
  7. def on_mywindow_delete (self, widget, dummy):
  8. gtk.main_quit()
  9.  
  10. if __name__ == "__main__":
  11. h = MyGUI()
  12. gtk.main()

Report this snippet  

You need to login to post a comment.