Tkinter: cleaning up when a toplevel is destroyed
David R. Smith
drs at alex2.labs.agilent.com
Mon Nov 19 19:48:06 EST 2001
Matthew Dixon Cowles wrote:
> I think you want something like:
>
> root.protocol("WM_DELETE_WINDOW", destroyCB)
>
> The call is documented in Fredrik Lundh's excellent An Introduction
> to Tkinter at (wrapped for line length):
>
> http://www.pythonware.com/library/tkinter/
> introduction/events-and-bindings.htm
That's the ticket. Thank you.
David
More information about the Python-list
mailing list