Skip to content
Prev 15965 / 63433 Next

tclServiceMode: stop Tcl/Tk from updating

"John Fox" <jfox@mcmaster.ca> writes:
It's a horrible kludge (I can say so because I suggested it) and a
sign that we don't really understand the way the Tk event loop runs on
Windows. 

However, as far as I can tell, it should be harmless to use
tclServiceMode() on other platforms, as long as you ensure that
on=TRUE is used whenever you do want to process events. Mostly, you'll
just be disabling event processing at points where you weren't
handling events anyway.

If you use things like tkwait.variable() when on=FALSE, then you're in
trouble, but that goes for all platforms.