What is the difference between .quit and .destroy on Tkinter, they seem to do the same thing.
Asked
Active
Viewed 605 times
1 Answers
1
.quit()
causes mainloop
to exit, but doesn't directly cause any widgets to be destroyed. However, if there's no code after calling mainloop
then the script exits, and all widgets will be destroyed.
.destroy()
will destroy a widget. If you destroy the root window then all other widgets will be destroyed and mainloop
will stop.

Bryan Oakley
- 370,779
- 53
- 539
- 685