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

kistler at gmx.net kistler at gmx.net
Mon Oct 30 01:25:54 EST 2000


> 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"?

Maybe the following helps you?

It's tcl/tk on linux, but the only thing I have at hand right now:
echo 'bind . <Destroy> { if { "%W" == "." } { puts "It is over" ; after
1000 ; } }' | wish

Per.


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list