NamedAction#

class NamedAction(**properties: Any)#

Superclasses: ShortcutAction, Object

Activates a named action.

See install_action and insert_action_group for ways to associate named actions with widgets.

Constructors#

class NamedAction
classmethod new(name: str) NamedAction#

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

It also passes the given arguments to it.

See insert_action_group for how to add actions to widgets.

Parameters:

name – the detailed name of the action

Methods#

class NamedAction
get_action_name() str#

Returns the name of the action that will be activated.

Properties#

class NamedAction
props.action_name: str#

The name of the action to activate.