\Header{TkWidgets}{Tk widgets}
\alias{tkbutton}{TkWidgets}
\alias{tkcanvas}{TkWidgets}
\alias{tkcheckbutton}{TkWidgets}
\alias{tkentry}{TkWidgets}
\alias{tkframe}{TkWidgets}
\alias{tklabel}{TkWidgets}
\alias{tklistbox}{TkWidgets}
\alias{tkmenu}{TkWidgets}
\alias{tkmenubutton}{TkWidgets}
\alias{tkmessage}{TkWidgets}
\alias{tkradiobutton}{TkWidgets}
\alias{tkscale}{TkWidgets}
\alias{tkscrollbar}{TkWidgets}
\alias{tktext}{TkWidgets}
\alias{tktoplevel}{TkWidgets}
\alias{tkwidget}{TkWidgets}
\keyword{misc}{TkWidgets}
\begin{Description}\relax
Create Tk widgets and associated \R{} objects.\end{Description}
\begin{Usage}
\begin{verbatim}
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, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{parent}] Parent of widget window 
\item[\code{type}] string describing the type of widget desired
\item[\code{...}] handled via \code{.Tcl.args}
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
These functions create Tk widgets.  \code{tkwidget} creates a widget of
a given type, the others simply call \code{tkwidget} with the
respective \code{type} argument.

It is not possible to describe the widgets and their arguments in
full.  Please refer to the Tcl/Tk documentation.\end{Details}
\begin{SeeAlso}\relax
\code{\Link{TclInterface}}, \code{\Link{TkCommands}},
\code{\Link{TkWidgetcmds}}\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
## Don't 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 Don't run
\end{ExampleCode}
\end{Examples}

