This function controls or reports on the Tcl service mode, i.e., whether Tcl will respond to events.
tclServiceMode(on = NULL)
(logical) Whether event servicing is turned on.
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.
The value of the Tcl service mode before the call.
## see demo(tkcanvas) for an example oldmode <- tclServiceMode(FALSE) # Do some work to create a nice picture. # Nothing will be displayed until... tclServiceMode(oldmode) ## another idea is to use tkwm.withdraw() ... tkwm.deiconify()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.