Gtk.NamedAction

g GObject.Object GObject.Object Gtk.ShortcutAction Gtk.ShortcutAction GObject.Object->Gtk.ShortcutAction Gtk.NamedAction Gtk.NamedAction Gtk.ShortcutAction->Gtk.NamedAction

Subclasses:

None

Methods

Inherited:

Gtk.ShortcutAction (4), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (name)

get_action_name ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

action-name

str

r/w/co

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Gtk.NamedAction(**kwargs)
Bases:

Gtk.ShortcutAction

Abstract:

No

Structure:

Gtk.NamedActionClass

A GtkShortcutAction that activates an action by name.

classmethod new(name)[source]
Parameters:

name (str) – the detailed name of the action

Returns:

a new GtkShortcutAction

Return type:

Gtk.NamedAction

Creates an action that when activated, activates the named action on the widget.

It also passes the given arguments to it.

See [method`Gtk`.Widget.insert_action_group] for how to add actions to widgets.

get_action_name()[source]
Returns:

the name of the action to activate

Return type:

str

Returns the name of the action that will be activated.

Property Details

Gtk.NamedAction.props.action_name
Name:

action-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The name of the action to activate.