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

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
is.tk2widget(x)
## S3 method for class 'tk2widget'
print(x, ...)

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

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

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

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

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

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

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

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

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

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

config(x, ...)
## S3 method for class 'tk2widget'
config(x, cfglist, ...)
## S3 method for class 'tk2label'
config(x, cfglist, ...)
config(x) <- value
## S3 replacement method for class 'tk2widget'
config(x) <- value
## S3 replacement method for class 'tk2label'
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...).

Author(s)

Philippe Grosjean

See Also

tk2widgets, tk2tip

Examples

1
2
3
4
5
6
7
## 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)

Example output

Loading required package: tcltk
Warning message:
no DISPLAY variable so Tk is not available 

tcltk2 documentation built on May 2, 2019, 9:37 a.m.