\Header{TkWidgetcmds}{Tk widget commands}
\alias{tkactivate}{TkWidgetcmds}
\alias{tkadd}{TkWidgetcmds}
\alias{tkaddtag}{TkWidgetcmds}
\alias{tkbbox}{TkWidgetcmds}
\alias{tkcanvasx}{TkWidgetcmds}
\alias{tkcanvasy}{TkWidgetcmds}
\alias{tkcget}{TkWidgetcmds}
\alias{tkcompare}{TkWidgetcmds}
\alias{tkconfigure}{TkWidgetcmds}
\alias{tkcoords}{TkWidgetcmds}
\alias{tkcreate}{TkWidgetcmds}
\alias{tkcurselection}{TkWidgetcmds}
\alias{tkdchars}{TkWidgetcmds}
\alias{tkdebug}{TkWidgetcmds}
\alias{tkdelete}{TkWidgetcmds}
\alias{tkdelta}{TkWidgetcmds}
\alias{tkdeselect}{TkWidgetcmds}
\alias{tkdlineinfo}{TkWidgetcmds}
\alias{tkdtag}{TkWidgetcmds}
\alias{tkdump}{TkWidgetcmds}
\alias{tkentrycget}{TkWidgetcmds}
\alias{tkentryconfigure}{TkWidgetcmds}
\alias{tkfind}{TkWidgetcmds}
\alias{tkflash}{TkWidgetcmds}
\alias{tkfraction}{TkWidgetcmds}
\alias{tkget}{TkWidgetcmds}
\alias{tkgettags}{TkWidgetcmds}
\alias{tkicursor}{TkWidgetcmds}
\alias{tkidentify}{TkWidgetcmds}
\alias{tkindex}{TkWidgetcmds}
\alias{tkinsert}{TkWidgetcmds}
\alias{tkinvoke}{TkWidgetcmds}
\alias{tkitembind}{TkWidgetcmds}
\alias{tkitemcget}{TkWidgetcmds}
\alias{tkitemconfigure}{TkWidgetcmds}
\alias{tkitemfocus}{TkWidgetcmds}
\alias{tkitemlower}{TkWidgetcmds}
\alias{tkitemraise}{TkWidgetcmds}
\alias{tkitemscale}{TkWidgetcmds}
\alias{tkmark.gravity}{TkWidgetcmds}
\alias{tkmark.names}{TkWidgetcmds}
\alias{tkmark.next}{TkWidgetcmds}
\alias{tkmark.previous}{TkWidgetcmds}
\alias{tkmark.set}{TkWidgetcmds}
\alias{tkmark.unset}{TkWidgetcmds}
\alias{tkmove}{TkWidgetcmds}
\alias{tknearest}{TkWidgetcmds}
\alias{tkpost}{TkWidgetcmds}
\alias{tkpostcascade}{TkWidgetcmds}
\alias{tkpostscript}{TkWidgetcmds}
\alias{tkscan.dragto}{TkWidgetcmds}
\alias{tkscan.mark}{TkWidgetcmds}
\alias{tksearch}{TkWidgetcmds}
\alias{tksee}{TkWidgetcmds}
\alias{tkselect}{TkWidgetcmds}
\alias{tkselection.adjust}{TkWidgetcmds}
\alias{tkselection.anchor}{TkWidgetcmds}
\alias{tkselection.clear}{TkWidgetcmds}
\alias{tkselection.from}{TkWidgetcmds}
\alias{tkselection.includes}{TkWidgetcmds}
\alias{tkselection.present}{TkWidgetcmds}
\alias{tkselection.range}{TkWidgetcmds}
\alias{tkselection.set}{TkWidgetcmds}
\alias{tkselection.to}{TkWidgetcmds}
\alias{tkset}{TkWidgetcmds}
\alias{tksize}{TkWidgetcmds}
\alias{tktag.add}{TkWidgetcmds}
\alias{tktag.bind}{TkWidgetcmds}
\alias{tktag.cget}{TkWidgetcmds}
\alias{tktag.configure}{TkWidgetcmds}
\alias{tktag.delete}{TkWidgetcmds}
\alias{tktag.lower}{TkWidgetcmds}
\alias{tktag.names}{TkWidgetcmds}
\alias{tktag.nextrange}{TkWidgetcmds}
\alias{tktag.prevrange}{TkWidgetcmds}
\alias{tktag.raise}{TkWidgetcmds}
\alias{tktag.ranges}{TkWidgetcmds}
\alias{tktag.remove}{TkWidgetcmds}
\alias{tktoggle}{TkWidgetcmds}
\alias{tktype}{TkWidgetcmds}
\alias{tkunpost}{TkWidgetcmds}
\alias{tkwindow.cget}{TkWidgetcmds}
\alias{tkwindow.configure}{TkWidgetcmds}
\alias{tkwindow.create}{TkWidgetcmds}
\alias{tkwindow.names}{TkWidgetcmds}
\alias{tkxview}{TkWidgetcmds}
\methalias{tkxview.moveto}{TkWidgetcmds}
\methalias{tkxview.scroll}{TkWidgetcmds}
\alias{tkyposition}{TkWidgetcmds}
\alias{tkyview}{TkWidgetcmds}
\methalias{tkyview.moveto}{TkWidgetcmds}
\methalias{tkyview.scroll}{TkWidgetcmds}
\keyword{misc}{TkWidgetcmds}
\begin{Description}\relax
These functions interface to Tk widget commands.
\end{Description}
\begin{Usage}
\begin{verbatim}
tkactivate(widget, ...)
tkadd(widget, ...)
tkaddtag(widget, ...)
tkbbox(widget, ...)
tkcanvasx(widget, ...)
tkcanvasy(widget, ...)
tkcget(widget, ...)
tkcompare(widget, ...)
tkconfigure(widget, ...)
tkcoords(widget, ...)
tkcreate(widget, ...)
tkcurselection(widget,...)
tkdchars(widget, ...)
tkdebug(widget, ...)
tkdelete(widget, ...)
tkdelta(widget, ...)
tkdeselect(widget, ...)
tkdlineinfo(widget, ...)
tkdtag(widget, ...)
tkdump(widget, ...)
tkentrycget(widget, ...)
tkentryconfigure(widget, ...)
tkfind(widget, ...)
tkflash(widget, ...)
tkfraction(widget, ...)
tkget(widget, ...)
tkgettags(widget, ...)
tkicursor(widget, ...)
tkidentify(widget, ...)
tkindex(widget, ...)
tkinsert(widget, ...)
tkinvoke(widget, ...)
tkitembind(widget, ...)
tkitemcget(widget, ...)
tkitemconfigure(widget, ...)
tkitemfocus(widget, ...)
tkitemlower(widget, ...)
tkitemraise(widget, ...)
tkitemscale(widget, ...)
tkmark.gravity(widget, ...)
tkmark.names(widget, ...)
tkmark.next(widget, ...)
tkmark.previous(widget, ...)
tkmark.set(widget, ...)
tkmark.unset(widget, ...)
tkmove(widget, ...)
tknearest(widget, ...)
tkpost(widget, ...)
tkpostcascade(widget, ...)
tkpostscript(widget, ...)
tkscan.mark(widget, ...)
tkscan.dragto(widget, ...)
tksearch(widget, ...)
tksee(widget, ...)
tkselect(widget, ...)
tkselection.adjust(widget, ...)
tkselection.anchor(widget, ...)
tkselection.clear(widget, ...)
tkselection.from(widget, ...)
tkselection.includes(widget, ...)
tkselection.present(widget, ...)
tkselection.range(widget, ...)
tkselection.set(widget, ...)
tkselection.to(widget,...)
tkset(widget, ...)
tksize(widget, ...)
tktoggle(widget, ...)
tktag.add(widget, ...)
tktag.bind(widget, ...)
tktag.cget(widget, ...)
tktag.configure(widget, ...)
tktag.delete(widget, ...)
tktag.lower(widget, ...)
tktag.names(widget, ...)
tktag.nextrange(widget, ...)
tktag.prevrange(widget, ...)
tktag.raise(widget, ...)
tktag.ranges(widget, ...)
tktag.remove(widget, ...)
tktype(widget, ...)
tkunpost(widget, ...)
tkwindow.cget(widget, ...)
tkwindow.configure(widget, ...)
tkwindow.create(widget, ...)
tkwindow.names(widget, ...)
tkxview(widget, ...)
tkxview.moveto(widget, ...)
tkxview.scroll(widget, ...)
tkyposition(widget, ...)
tkyview(widget, ...)
tkyview.moveto(widget, ...)
tkyview.scroll(widget, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{widget}] The widget this applies to
\item[\code{...}] Handled via \code{.Tcl.args}
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
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
\code{.a.b selection clear} are converted to function names like
\code{tkselection.clear} and the widget is given as the first argument.
\end{Details}
\begin{SeeAlso}\relax
\code{\Link{TclInterface}}, \code{\Link{TkWidgets}},
\code{\Link{TkCommands}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
## 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)

\end{ExampleCode}
\end{Examples}

