There are far too many of these commands to describe them and their
arguments in full. Please refer to the Tcl/Tk documentation for details.
Except for a few exceptions, the pattern is that Tcl widget commands
possibly with subcommands like
.a.b selection clear are converted to function names like
tkselection.clear and the widget is given as the first argument.
See Also
TclInterface, TkWidgets,
TkCommands
Examples
## 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()
tkpack(txt.w <- tktext(tt))
tkinsert(txt.w, "0.0", "plot(1:10)")
# callback function
eval.txt <- function()
eval(parse(text = tclvalue(tkget(txt.w, "0.0", "end"))))
tkpack(but.w <- tkbutton(tt, text = "Submit", command = eval.txt))
## Try pressing the button, edit the text and when finished:
tkdestroy(tt)
## End(Not run)