Cara mengkode tombol yang dapat diklik di Python

from tkinter import *
master = Tk()
def close_window():
    exit()
button = Button(master, text = 'Click me', command = close_window)
button.pack()
mainloop()
Harry the Programmer