A action object encapsulates an action (a callback) adding textual and graphic information. Actions may be proxied in buttons, menu bars or tool bars.
gaction(
label,
tooltip = NULL,
icon = NULL,
key.accel = NULL,
handler = NULL,
action = NULL,
parent = NULL,
...,
toolkit = guiToolkit()
).gaction(
toolkit,
label,
tooltip = NULL,
icon = NULL,
key.accel = NULL,
handler = NULL,
action = NULL,
parent = NULL,
...
)
label for action
toolktip for actin
icon (stock icon name) for icon
keyboard accelerator. If given, parent must be specified.
handler to call when action is invoked
values passed to parameterize action
parent window. Needed if keyboard accelerator used.
These values are passed to the add
method of the
parent container, and occasionally have been used to sneak in
hidden arguments to toolkit implementations.
Each widget constructor is passed in the toolkit it
will use. This is typically done using the default, which will
lookup the toolkit through guiToolkit
.
a gaction instance