home *** CD-ROM | disk | FTP | other *** search
- from Tkinter import *
-
-
- class LevelEditorWin(Frame):
- def __init__(self, parent=None):
- Frame.__init__(self, parent)
- self.pack()
- self.make_widgets()
- self.foobar = parent
-
- def quitCB(self):
- print "LevelEd is going away now"
- #self.quit()
-
- def greetingsCB(self):
- print "Hello, I must be off now"
-
-
- def make_widgets(self):
- Label(self, text="LevelEd v0.1a").pack(side=TOP)
- Button(self, text="Load Mission", command=self.greetingsCB).pack(side=LEFT)
- Button(self, text="Quit", command=self.quitCB).pack(side=RIGHT)
-
-
- if __name__ == '__main__':
- root = Tk()
- LevelEditorWin().mainloop()
- root.destroy()
-
-
-
-