File: class/Workbook/Examples/Lecture11/gui2.py
from Tkinter import * # get widgets def callback(): # define handler print 'hello stdout world...' top = Frame() # make a container top.pack() Label(top, text="Hello callback world").pack(side=TOP) Button(top, text="press me", command=callback).pack(side=BOTTOM) top.mainloop()