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()