Add system exit action to a button : Event « GUI Tk « Python
- Python
- GUI Tk
- Event
Add system exit action to a button

from Tkinter import *
root = Tk()
Button(root, text='press', command=root.quit).pack(side=LEFT)
root.mainloop()
Related examples in the same category