\HeaderA{TkWidgets}{Tk widgets}{TkWidgets}
\aliasA{tkbutton}{TkWidgets}{tkbutton}
\aliasA{tkcanvas}{TkWidgets}{tkcanvas}
\aliasA{tkcheckbutton}{TkWidgets}{tkcheckbutton}
\aliasA{tkentry}{TkWidgets}{tkentry}
\aliasA{tkframe}{TkWidgets}{tkframe}
\aliasA{tklabel}{TkWidgets}{tklabel}
\aliasA{tklistbox}{TkWidgets}{tklistbox}
\aliasA{tkmenu}{TkWidgets}{tkmenu}
\aliasA{tkmenubutton}{TkWidgets}{tkmenubutton}
\aliasA{tkmessage}{TkWidgets}{tkmessage}
\aliasA{tkradiobutton}{TkWidgets}{tkradiobutton}
\aliasA{tkscale}{TkWidgets}{tkscale}
\aliasA{tkscrollbar}{TkWidgets}{tkscrollbar}
\aliasA{tktext}{TkWidgets}{tktext}
\aliasA{tktoplevel}{TkWidgets}{tktoplevel}
\aliasA{tkwidget}{TkWidgets}{tkwidget}
\aliasA{ttkbutton}{TkWidgets}{ttkbutton}
\aliasA{ttkcheckbutton}{TkWidgets}{ttkcheckbutton}
\aliasA{ttkcombobox}{TkWidgets}{ttkcombobox}
\aliasA{ttkentry}{TkWidgets}{ttkentry}
\aliasA{ttkframe}{TkWidgets}{ttkframe}
\aliasA{ttkimage}{TkWidgets}{ttkimage}
\aliasA{ttklabel}{TkWidgets}{ttklabel}
\aliasA{ttklabelframe}{TkWidgets}{ttklabelframe}
\aliasA{ttkmenubutton}{TkWidgets}{ttkmenubutton}
\aliasA{ttknotebook}{TkWidgets}{ttknotebook}
\aliasA{ttkpanedwindow}{TkWidgets}{ttkpanedwindow}
\aliasA{ttkprogressbar}{TkWidgets}{ttkprogressbar}
\aliasA{ttkradiobutton}{TkWidgets}{ttkradiobutton}
\aliasA{ttkscrollbar}{TkWidgets}{ttkscrollbar}
\aliasA{ttkseparator}{TkWidgets}{ttkseparator}
\aliasA{ttksizegrip}{TkWidgets}{ttksizegrip}
\aliasA{ttktreeview}{TkWidgets}{ttktreeview}
\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, ...)
ttkentry(parent, ...)
tkframe(parent, ...)
tklabel(parent, ...)
tklistbox(parent, ...)
tkmenu(parent, ...)
tkmenubutton(parent, ...)
tkmessage(parent, ...)
tkradiobutton(parent, ...)
tkscale(parent, ...)
tkscrollbar(parent, ...)
tktext(parent, ...)
tktoplevel(parent = .TkRoot, ...)

ttkbutton(parent, ...)
ttkcheckbutton(parent, ...)
ttkcombobox(parent, ...)
ttkframe(parent, ...)
ttkimage(parent, ...)
ttklabel(parent, ...)
ttklabelframe(parent, ...)
ttkmenubutton(parent, ...)
ttknotebook(parent, ...)
ttkpanedwindow(parent, ...)
ttkprogressbar(parent, ...)
ttkradiobutton(parent, ...)
ttkscrollbar(parent, ...)
ttkseparator(parent, ...)
ttksizegrip(parent, ...)
ttktreeview(parent, ...)
\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{\LinkA{.Tcl.args}{.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.

The functions starting \code{ttk} are for the themed widget set for Tk
8.5 or later.  A tutorial can be found at \url{http://www.tkdocs.com}.

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{\LinkA{TclInterface}{TclInterface}}, \code{\LinkA{TkCommands}{TkCommands}},
\code{\LinkA{TkWidgetcmds}{TkWidgetcmds}}
\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()
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)

## test for themed widgets
if(as.character(tcl("info", "tclversion")) >= "8.5") {
  # make use of themed widgets
  # list themes
  as.character(tcl("ttk::style", "theme", "names"))
  # select a theme -- here pre-XP windows
  tcl("ttk::style", "theme use", "winnative")
} else {
  # use Tk 8.0 widgets
}
## End(Not run)\end{ExampleCode}
\end{Examples}

