clickable button python code example
Example: how to code a clickable button in python
from tkinter import *
master = Tk()
def close_window():
exit()
button = Button(master, text = 'Click me', command = close_window)
button.pack()
mainloop()
from tkinter import *
master = Tk()
def close_window():
exit()
button = Button(master, text = 'Click me', command = close_window)
button.pack()
mainloop()