tclServiceMode: Allow Tcl events to be serviced or not

Description Usage Arguments Details Value Examples

Description

This function controls or reports on the Tcl service mode, i.e., whether Tcl will respond to events.

Usage

1

Arguments

on

(logical) Whether event servicing is turned on.

Details

If called with on == NULL (the default), no change is made.

Note that this blocks all Tcl/Tk activity, including for widgets from other packages. It may be better to manage mapping of windows individually.

Value

The value of the Tcl service mode before the call.

Examples

1
2
3
4
5
6
7
8
9
## see demo(tkcanvas) for an example
## Not run: 
oldmode <- tclServiceMode(FALSE)
# Do some work to create a nice picture.
# Nothing will be displayed until...
tclServiceMode(oldmode)

## End(Not run)
## another idea is to use tkwm.withdraw() ... tkwm.deiconify()

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.