Shall we declare Tkinter dead? No-one seems interested in it ;o)

Fredrik Lundh fredrik at effbot.org
Mon Oct 30 02:29:34 EST 2000


Mike Fletcher wrote:
> Third time for this question, still no (as in nada, zip, zero, zilch)
> responses.

it's the first time I see your question.  where did you send it?

> I'm beginning to suspect that, like me, everyone has already
> moved to wxPython :o) .

really?

> Can anyone tell me what event to bind in a Tkinter system that says "the
> root window has been closed", or, more precisely, "it's safe to shut down
> the mainloop now"?

install a DELETE_WINDOW handler:

    root.protocol("WM_DELETE_WINDOW", callback)

for more info, see:
http://www.pythonware.com/library/tkinter/introduction/events-and-bindings.htm

</F>





More information about the Python-list mailing list