Basic glade file load


/ Published in: Python
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.