Skip to content
Prev 17371 / 398506 Next

Tcl/Tk window lingering too long

David Firth <david.firth at nuffield.oxford.ac.uk> writes:
Drats!

Hmm. Inserting a .Tcl("update") does the trick. I'm slightly worried
about some of the "update considered evil" things I've heard - see
http://mini.net/tcl/1255.html. Looks like it would be fairly safe to
run it at top level, though. (At any rate there ought to be a
tkupdate() function, but there's not - yet...)

The Windows version runs the Tcl loop periodically during computations
which is why we aren't seeing this effect there. Unix-alikes only
check for events when waiting for keyboard input or when explicitly
requested.