Gtk.ToggleActionEntry

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.

is_active

bool

r/w

The initial state of the toggle action.

label

str

r/w

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

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

Gtk.ToggleActionEntry structs are used with Gtk.ActionGroup.add_toggle_actions() to construct toggle actions.

Deprecated since version 3.10.