Learn R Programming

tcltk2 (version 1.2-11)

tk2methods: A series of methods applicable to tk2widget or tk2cfglist objects

Description

Tk2widgets can be used as tcltk widgets, but they propose also an object-oriented interaction through these different methods.

Usage

is.tk2widget(x) "print"(x, ...)
tk2cfglist(...) "print"(x, ...)
state(x, ...) "state"(x, ...)
label(x, ...) "label"(x, ...) label(x) <- value "label"(x) <- value
tag(x, ...) "tag"(x, ...) tag(x) <- value "tag"(x) <- value
disabled(x, ...) "disabled"(x, ...) disabled(x) <- value "disabled"(x) <- value
values(x, ...) "values"(x, ...) "values"(x, ...) values(x) <- value "values"(x) <- value "values"(x) <- value
value(x, ...) "value"(x, ...) "value"(x, ...) value(x) <- value "value"(x) <- value "value"(x) <- value
selection(x, ...) "selection"(x, ...) "selection"(x, ...) selection(x) <- value "selection"(x) <- value "selection"(x) <- value
visibleItem(x, index, ...) "visibleItem"(x, index, ...) "visibleItem"(x, index, ...)
size(x, ...) "size"(x, ...) "size"(x, ...)
config(x, ...) "config"(x, cfglist, ...) "config"(x, cfglist, ...) config(x) <- value "config"(x) <- value "config"(x) <- value

Arguments

x
a tk2widget object.
...
a series of named arguments corresponding to parameters and values to use for the configuration for tk2cfglist(), or reserved arguments for future use for the other function (not used yet).
value
a value to assign to the object's method.
index
the index of the item in the list to make visible.
cfglist
a named list with configuration parameters and values to apply (usually, a tk2cfglist object).

Value

Depnds on the function (TODO: complete this...).

See Also

tk2widgets, tk2tip

Examples

Run this code
## Not run: 
# ## These cannot be run by examples() but should be OK when pasted
# ## into an interactive R session with the tcltk package loaded
# 
# ## TODO: examples illustrating the use of these methods...
# ## End(Not run)

Run the code above in your browser using DataLab