Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gaction

An action constructor


Description

A action object encapsulates an action (a callback) adding textual and graphic information. Actions may be proxied in buttons, menu bars or tool bars.

generic for toolkit dispatch

Usage

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

Arguments

label

label for action

tooltip

toolktip for actin

icon

icon (stock icon name) for icon

key.accel

keyboard accelerator. If given, parent must be specified.

handler

handler to call when action is invoked

action

values passed to parameterize action

parent

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.

toolkit

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.

Value

a gaction instance


gWidgets2

Rewrite of gWidgets API for Simplified GUI Construction

v1.0-8
GPL (>= 3)
Authors
John Verzani
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.