Gtk.ActionEntry

Fields

Name

Type

Access

Description

accelerator

str

r/w

The accelerator for the action, in the format understood by Gtk.accelerator_parse().

callback

GObject.Callback

r/w

The function to call when the action is activated.

label

str

r/w

The label for the action. This field should typically be marked for translation, see Gtk.ActionGroup.set_translation_domain(). If label is None, the label of the stock item with id stock_id is used.

name

str

r/w

The name of the action.

stock_id

str

r/w

The stock id for the action, or the name of an icon from the icon theme.

tooltip

str

r/w

The tooltip for the action. This field should typically be marked for translation, see Gtk.ActionGroup.set_translation_domain().

Methods

None

Details

class Gtk.ActionEntry

Gtk.ActionEntry structs are used with Gtk.ActionGroup.add_actions() to construct actions.

Deprecated since version 3.10.