Allow Tcl events to be serviced or not
允许Tcl的活动,以服务或不
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function controls or reports on the Tcl service mode, i.e. whether Tcl will respond to events.
此功能控制或Tcl的服务模式,即报告的Tcl是否会响应事件。
用法----------Usage----------
tclServiceMode(on = NULL)
参数----------Arguments----------
参数:on
(logical) Whether event servicing is turned on.
(逻辑)事件服务是否打开。
Details
详情----------Details----------
If called with on == NULL (the default), no change is made.
如果on == NULL(默认值)调用,没有变化。
Note that this blocks all Tcl/Tk activity, including for widgets from other packages. It may be better to manage mapping of windows individually.
请注意,此块所有的Tcl / Tk的活动,包括来自其他包的部件。它可能是更好的单独管理窗口的映射。
值----------Value----------
The value of the Tcl service mode before the call.
之前调用Tcl的服务模式的价值。
举例----------Examples----------
## see demo(tkcanvas) for an example[#看到一个例子演示(tkcanvas)]
## 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()[#另一个想法是使用tkwm.withdraw()... tkwm.deiconify()]