Learn R Programming

tcltk2 (version 1.1-4)

tk2commands: Tk commands associated with the tk2XXX widgets

Description

These commands supplement those available in the tcltk package to ease manipulation of tk2XXX widgets.

Usage

tk2column(widget, action = c("add", "configure", "delete", "names", "cget",
    "nearest"), ...)
tk2insert.multi(widget, where = "end", items)
tk2list.delete(widget, first, last = first)
tk2list.get(widget, first = 0, last = "end")
tk2list.insert(widget, index = "end", ...)
tk2list.set(widget, items)
tk2list.size(widget)
tk2notetraverse(nb)
tk2notetab(nb, tab)
tk2notetab.select(nb, tab)
tk2notetab.text(nb)
tk2state.set(widget, state = c("normal", "disabled", "readonly"))
is.tk()
is.ttk()
tk2theme.elements()
tk2theme.list()
tk2theme(theme = NULL)

Arguments

widget
The widget to which these actions apply
action
Which kind of action?
where
Where are these item added in the list (by default, at the end)
items
The items to add (either a vector for a single line, or a matrix for more items)
...
Further arguments to the action
first
The 0-based first index to consider in the list
last
The 0-based last index to consider in the list, or "end" for using the last element of the list
index
The 0-based index where to insert items in the list
nb
A tk2notebook or ttk2notebook widget ("tclObj" object)
tab
The name (text) of a tab in a notebook
state
The new state of the widget
theme
A theme to use (character string)

Details

tk2column() manipulate columns of a tk2mclistbox widget, tk2insert.multi() is used to insert multiple field entries in a tk2mclistbox widget, is.tk() determines if the tk package is loaded (on some platforms it is possible to load the tcltk package without tk, for instance, in batch mode). is.ttk() determines if 'ttk' widgets (styled widgets) used by the tk2XXX() functions are available (you need Tk >= 8.5).

See Also

tk2widgets, tk2tip