Tkinker Python Tutorial

from Tkinter  import *
root = Tk()
Button(root, text='press', command=root.quit).pack(side=LEFT)
root.mainloop()