Tkinter: cleaning up when a toplevel is destroyed

David R. Smith drs at
Tue Nov 20 01:48:06 CET 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):
>   introduction/events-and-bindings.htm

That's the ticket.  Thank you.


More information about the Python-list mailing list