Python Tk 1

root = Tkinter.Tk()button = Tkinter.Button(root, text=’Exit’, command=sys.exit)button.pack()

情報源: Python Tk 1