EVOLUTION-MANAGER
Edit File: TkWidgetcmds.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Tk widget commands</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for TkWidgetcmds {tcltk}"><tr><td>TkWidgetcmds {tcltk}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Tk widget commands</h2> <h3>Description</h3> <p>These functions interface to Tk widget commands. </p> <h3>Usage</h3> <pre> 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, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>widget</code></td> <td> <p>The widget this applies to</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Handled via <code>.Tcl.args</code></p> </td></tr> </table> <h3>Details</h3> <p>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</code> are converted to function names like <code>tkselection.clear</code> and the widget is given as the first argument. </p> <h3>See Also</h3> <p><code><a href="TclInterface.html">TclInterface</a></code>, <code><a href="TkWidgets.html">TkWidgets</a></code>, <code><a href="TkCommands.html">TkCommands</a></code></p> <h3>Examples</h3> <pre> ## 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) </pre> <hr /><div style="text-align: center;">[Package <em>tcltk</em> version 3.6.0 <a href="00Index.html">Index</a>]</div> </body></html>