Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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()
 
PREVIOUS NEXT
Tagged: #code #clickable #button #python
ADD COMMENT
Topic
Name
3+7 =