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)
# S3 method for tk2widget
print(x, ...)

tk2cfglist(...) # S3 method for tk2cfglist print(x, ...)

state(x, ...) # S3 method for tk2widget state(x, ...)

label(x, ...) # S3 method for tk2widget label(x, ...) label(x) <- value # S3 method for tk2widget label(x) <- value

tag(x, ...) # S3 method for tk2widget tag(x, ...) tag(x) <- value # S3 method for tk2widget tag(x) <- value

disabled(x, ...) # S3 method for tk2widget disabled(x, ...) disabled(x) <- value # S3 method for tk2widget disabled(x) <- value

values(x, ...) # S3 method for tk2widget values(x, ...) # S3 method for tk2listbox values(x, ...) values(x) <- value # S3 method for tk2widget values(x) <- value # S3 method for tk2listbox values(x) <- value

value(x, ...) # S3 method for tk2widget value(x, ...) # S3 method for tk2listbox value(x, ...) value(x) <- value # S3 method for tk2widget value(x) <- value # S3 method for tk2listbox value(x) <- value

selection(x, ...) # S3 method for tk2widget selection(x, ...) # S3 method for tk2listbox selection(x, ...) selection(x) <- value # S3 method for tk2widget selection(x) <- value # S3 method for tk2listbox selection(x) <- value

visibleItem(x, index, ...) # S3 method for tk2widget visibleItem(x, index, ...) # S3 method for tk2listbox visibleItem(x, index, ...)

size(x, ...) # S3 method for tk2widget size(x, ...) # S3 method for tk2listbox size(x, ...)

config(x, ...) # S3 method for tk2widget config(x, cfglist, ...) # S3 method for tk2label config(x, cfglist, ...) config(x) <- value # S3 method for tk2widget config(x) <- value # S3 method for tk2label config(x) <- value

Value

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

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).

Author

Philippe Grosjean

See Also

tk2widgets, tk2tip

Examples

Run this code
if (FALSE) {
## 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...
}

Run the code above in your browser using DataLab