\HeaderA{TkWidgetcmds}{Tk widget commands}{TkWidgetcmds}
\aliasA{tkactivate}{TkWidgetcmds}{tkactivate}
\aliasA{tkadd}{TkWidgetcmds}{tkadd}
\aliasA{tkaddtag}{TkWidgetcmds}{tkaddtag}
\aliasA{tkbbox}{TkWidgetcmds}{tkbbox}
\aliasA{tkcanvasx}{TkWidgetcmds}{tkcanvasx}
\aliasA{tkcanvasy}{TkWidgetcmds}{tkcanvasy}
\aliasA{tkcget}{TkWidgetcmds}{tkcget}
\aliasA{tkcompare}{TkWidgetcmds}{tkcompare}
\aliasA{tkconfigure}{TkWidgetcmds}{tkconfigure}
\aliasA{tkcoords}{TkWidgetcmds}{tkcoords}
\aliasA{tkcreate}{TkWidgetcmds}{tkcreate}
\aliasA{tkcurselection}{TkWidgetcmds}{tkcurselection}
\aliasA{tkdchars}{TkWidgetcmds}{tkdchars}
\aliasA{tkdebug}{TkWidgetcmds}{tkdebug}
\aliasA{tkdelete}{TkWidgetcmds}{tkdelete}
\aliasA{tkdelta}{TkWidgetcmds}{tkdelta}
\aliasA{tkdeselect}{TkWidgetcmds}{tkdeselect}
\aliasA{tkdlineinfo}{TkWidgetcmds}{tkdlineinfo}
\aliasA{tkdtag}{TkWidgetcmds}{tkdtag}
\aliasA{tkdump}{TkWidgetcmds}{tkdump}
\aliasA{tkentrycget}{TkWidgetcmds}{tkentrycget}
\aliasA{tkentryconfigure}{TkWidgetcmds}{tkentryconfigure}
\aliasA{tkfind}{TkWidgetcmds}{tkfind}
\aliasA{tkflash}{TkWidgetcmds}{tkflash}
\aliasA{tkfraction}{TkWidgetcmds}{tkfraction}
\aliasA{tkget}{TkWidgetcmds}{tkget}
\aliasA{tkgettags}{TkWidgetcmds}{tkgettags}
\aliasA{tkicursor}{TkWidgetcmds}{tkicursor}
\aliasA{tkidentify}{TkWidgetcmds}{tkidentify}
\aliasA{tkindex}{TkWidgetcmds}{tkindex}
\aliasA{tkinsert}{TkWidgetcmds}{tkinsert}
\aliasA{tkinvoke}{TkWidgetcmds}{tkinvoke}
\aliasA{tkitembind}{TkWidgetcmds}{tkitembind}
\aliasA{tkitemcget}{TkWidgetcmds}{tkitemcget}
\aliasA{tkitemconfigure}{TkWidgetcmds}{tkitemconfigure}
\aliasA{tkitemfocus}{TkWidgetcmds}{tkitemfocus}
\aliasA{tkitemlower}{TkWidgetcmds}{tkitemlower}
\aliasA{tkitemraise}{TkWidgetcmds}{tkitemraise}
\aliasA{tkitemscale}{TkWidgetcmds}{tkitemscale}
\aliasA{tkmark.gravity}{TkWidgetcmds}{tkmark.gravity}
\aliasA{tkmark.names}{TkWidgetcmds}{tkmark.names}
\aliasA{tkmark.next}{TkWidgetcmds}{tkmark.next}
\aliasA{tkmark.previous}{TkWidgetcmds}{tkmark.previous}
\aliasA{tkmark.set}{TkWidgetcmds}{tkmark.set}
\aliasA{tkmark.unset}{TkWidgetcmds}{tkmark.unset}
\aliasA{tkmove}{TkWidgetcmds}{tkmove}
\aliasA{tknearest}{TkWidgetcmds}{tknearest}
\aliasA{tkpost}{TkWidgetcmds}{tkpost}
\aliasA{tkpostcascade}{TkWidgetcmds}{tkpostcascade}
\aliasA{tkpostscript}{TkWidgetcmds}{tkpostscript}
\aliasA{tkscan.dragto}{TkWidgetcmds}{tkscan.dragto}
\aliasA{tkscan.mark}{TkWidgetcmds}{tkscan.mark}
\aliasA{tksearch}{TkWidgetcmds}{tksearch}
\aliasA{tksee}{TkWidgetcmds}{tksee}
\aliasA{tkselect}{TkWidgetcmds}{tkselect}
\aliasA{tkselection.adjust}{TkWidgetcmds}{tkselection.adjust}
\aliasA{tkselection.anchor}{TkWidgetcmds}{tkselection.anchor}
\aliasA{tkselection.clear}{TkWidgetcmds}{tkselection.clear}
\aliasA{tkselection.from}{TkWidgetcmds}{tkselection.from}
\aliasA{tkselection.includes}{TkWidgetcmds}{tkselection.includes}
\aliasA{tkselection.present}{TkWidgetcmds}{tkselection.present}
\aliasA{tkselection.range}{TkWidgetcmds}{tkselection.range}
\aliasA{tkselection.set}{TkWidgetcmds}{tkselection.set}
\aliasA{tkselection.to}{TkWidgetcmds}{tkselection.to}
\aliasA{tkset}{TkWidgetcmds}{tkset}
\aliasA{tksize}{TkWidgetcmds}{tksize}
\aliasA{tktag.add}{TkWidgetcmds}{tktag.add}
\aliasA{tktag.bind}{TkWidgetcmds}{tktag.bind}
\aliasA{tktag.cget}{TkWidgetcmds}{tktag.cget}
\aliasA{tktag.configure}{TkWidgetcmds}{tktag.configure}
\aliasA{tktag.delete}{TkWidgetcmds}{tktag.delete}
\aliasA{tktag.lower}{TkWidgetcmds}{tktag.lower}
\aliasA{tktag.names}{TkWidgetcmds}{tktag.names}
\aliasA{tktag.nextrange}{TkWidgetcmds}{tktag.nextrange}
\aliasA{tktag.prevrange}{TkWidgetcmds}{tktag.prevrange}
\aliasA{tktag.raise}{TkWidgetcmds}{tktag.raise}
\aliasA{tktag.ranges}{TkWidgetcmds}{tktag.ranges}
\aliasA{tktag.remove}{TkWidgetcmds}{tktag.remove}
\aliasA{tktoggle}{TkWidgetcmds}{tktoggle}
\aliasA{tktype}{TkWidgetcmds}{tktype}
\aliasA{tkunpost}{TkWidgetcmds}{tkunpost}
\aliasA{tkwindow.cget}{TkWidgetcmds}{tkwindow.cget}
\aliasA{tkwindow.configure}{TkWidgetcmds}{tkwindow.configure}
\aliasA{tkwindow.create}{TkWidgetcmds}{tkwindow.create}
\aliasA{tkwindow.names}{TkWidgetcmds}{tkwindow.names}
\aliasA{tkxview}{TkWidgetcmds}{tkxview}
\methaliasA{tkxview.moveto}{TkWidgetcmds}{tkxview.moveto}
\methaliasA{tkxview.scroll}{TkWidgetcmds}{tkxview.scroll}
\aliasA{tkyposition}{TkWidgetcmds}{tkyposition}
\aliasA{tkyview}{TkWidgetcmds}{tkyview}
\methaliasA{tkyview.moveto}{TkWidgetcmds}{tkyview.moveto}
\methaliasA{tkyview.scroll}{TkWidgetcmds}{tkyview.scroll}
\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{\LinkA{TclInterface}{TclInterface}}, \code{\LinkA{TkWidgets}{TkWidgets}},
\code{\LinkA{TkCommands}{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}

