#!/local/bin/python from Tkinter import * widget = Button(None, text='Hello widget world', command='exit') widget.pack() widget.mainloop()