TkWidgets               package:tcltk               R Documentation

_T_k _w_i_d_g_e_t_s

_D_e_s_c_r_i_p_t_i_o_n:

     Create Tk widgets and associated R objects.

_U_s_a_g_e:

     tkwidget(parent, type, ...)
     tkbutton(parent, ...)
     tkcanvas(parent, ...)
     tkcheckbutton(parent, ...)
     tkentry(parent, ...)
     tkframe(parent, ...)
     tklabel(parent, ...)
     tklistbox(parent, ...)
     tkmenu(parent, ...)
     tkmenubutton(parent, ...)
     tkmessage(parent, ...)
     tkradiobutton(parent, ...)
     tkscale(parent, ...)
     tkscrollbar(parent, ...)
     tktext(parent, ...)
     tktoplevel(parent=.TkRoot, ...)

_A_r_g_u_m_e_n_t_s:

  parent: Parent of widget window 

    type: string describing the type of widget desired

     ...: handled via '.Tcl.args'

_D_e_t_a_i_l_s:

     These functions create Tk widgets.  'tkwidget' creates a widget of
     a given type, the others simply call 'tkwidget' with the
     respective 'type' argument.

     It is not possible to describe the widgets and their arguments in
     full.  Please refer to the Tcl/Tk documentation.

_S_e_e _A_l_s_o:

     'TclInterface', 'TkCommands', 'TkWidgetcmds'

_E_x_a_m_p_l_e_s:

     ## Not run: 
     ## These cannot be run by examples() but should be OK when pasted
     ## into an interactive R session with the tcltk package loaded

     tt <- tktoplevel()
     label.widget <- tklabel(tt, text="Hello, World!")
     button.widget <- tkbutton(tt, text="Push",
                               command=function()cat("OW!\n"))
     tkpack(label.widget, button.widget) # geometry manager
                                         # see Tk-commands

     ## Push the button and then...

     tkdestroy(tt)
     ## End(Not run)

