Jump to content

Mike Bond

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Mike Bond

  1. A simple one-to-one select query in MySQL might look like this: SELECT t1.name, t2.salary FROM employee AS t1 INNER JOIN info AS t2 ON t1.name = t2.name; Reference: MySQL Online Documentation at: JOIN Syntax
  2. I agree with [ratmandall], gtk is definitely the way to go. You should also check into Glade, it can build an XML file that describes your GUI and that gets loaded at runtime. #!/usr/bin/env python import sys try: import pygtk pygtk.require("2.0") except: pass try: import gtk import gtk.glade except: sys.exit(1) class pyGUI: """ Main class for pyGUI application """ def __init__(self): self.wTree = gtk.glade.XML("dialog.glade") # Build our dictionary and connect it dic = { "on_ButtonClose_clicked": self.ActionClose, "on_DialogMain_destroy": gtk.main_quit } self.wTree.signal_autoconnect(dic) def ActionClose(self, widget): gtk.main_quit() if __name__ == '__main__': app = pyGUI() gtk.main()
×
×
  • Create New...