Which method can I override for cleanup task when a Tkinter.Tk window in Python?
Posted
by apalopohapa
on Stack Overflow
See other posts from Stack Overflow
or by apalopohapa
Published on 2010-06-02T01:13:01Z
Indexed on
2010/06/02
1:23 UTC
Read the original article
Hit count: 219
Hello. I created:
class MainGUI(Tkinter.Tk):
# some overrides
# MAIN
gui = MainGUI(None)
gui.mainloop()
But I need to do some cleanup when the window is closed by the user. Which method in Tkinter.Tk can I override?
© Stack Overflow or respective owner