:right-sidebar: True NamedAction =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: NamedAction(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gtk.ShortcutAction`, :class:`~gi.repository.GObject.Object` A ``GtkShortcutAction`` that activates an action by name. Constructors ------------ .. rst-class:: interim-class .. class:: NamedAction :no-index: .. classmethod:: new(name: str) -> ~gi.repository.Gtk.NamedAction Creates an action that when activated, activates the named action on the widget. It also passes the given arguments to it. See :obj:`~gi.repository.Gtk.Widget.insert_action_group` for how to add actions to widgets. :param name: the detailed name of the action Methods ------- .. rst-class:: interim-class .. class:: NamedAction :no-index: .. method:: get_action_name() -> str Returns the name of the action that will be activated. Properties ---------- .. rst-class:: interim-class .. class:: NamedAction :no-index: .. attribute:: props.action_name :type: str The name of the action to activate.