tclServiceMode package:tcltk R Documentation _A_l_l_o_w _T_c_l _e_v_e_n_t_s _t_o _b_e _s_e_r_v_i_c_e_d _o_r _n_o_t _D_e_s_c_r_i_p_t_i_o_n: This function controls or reports on the Tcl service mode, i.e. whether Tcl will respond to events. _U_s_a_g_e: tclServiceMode(on = NULL) _A_r_g_u_m_e_n_t_s: on: (logical) Whether event servicing is turned on. _D_e_t_a_i_l_s: 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. _V_a_l_u_e: The value of the Tcl service mode before the call. _E_x_a_m_p_l_e_s: ## 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()