TkWidgetcmds              package:tcltk              R Documentation

_T_k _w_i_d_g_e_t _c_o_m_m_a_n_d_s

_D_e_s_c_r_i_p_t_i_o_n:

     These functions interface to Tk widget commands.

_U_s_a_g_e:

     tkactivate(widget, ...)
     tkadd(widget, ...)
     tkbbox(widget, ...)
     tkcompare(widget, ...)
     tkconfigure(widget, ...)
     tkconfigure.entry(widget, ...)
     tkcget(widget, ...)
     tkcget.entry(widget, ...)
     tkcoords(widget, ...)
     tkcurselection(widget,...)
     tkdebug(widget, ...)
     tkdelete(widget, ...)
     tkdelta(widget, ...)
     tkdeselect(widget, ...)
     tkdlineinfo(widget, ...)
     tkdump(widget, ...)
     tkflash(widget, ...)
     tkfraction(widget, ...)
     tkget(widget, ...)
     tkicursor(widget, ...)
     tkidentify(widget, ...)
     tkimage.cget(widget, ...)
     tkimage.configure(widget, ...)
     tkimage.create(widget, ...)
     tkimage.names(widget, ...)
     tkindex(widget, ...)
     tkinsert(widget, ...)
     tkinvoke(widget, ...)
     tkmark.gravity(widget, ...)
     tkmark.names(widget, ...)
     tkmark.next(widget, ...)
     tkmark.previous(widget, ...)
     tkmark.set(widget, ...)
     tkmark.unset(widget, ...)
     tknearest(widget, ...)
     tkpost(widget, ...)
     tkpostcascade(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, ...)

_A_r_g_u_m_e_n_t_s:

  widget: The widget this applies to

     ...: Handled via `.Tcl.args'

_D_e_t_a_i_l_s:

     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 `.a.b selection
     clear' are converted to function names like `tkselection.clear'
     and the widget is given as the first argument.

_S_e_e _A_l_s_o:

     `TclInterface', `TkWidgets', `TkCommands'

_E_x_a_m_p_l_e_s:

     ## 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 use try() in these to keep system sane
     eval.txt <- function()
        try(eval(parse(text=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)

