:right-sidebar: True SimpleActionGroup =================================================================== .. currentmodule:: gi.repository.Gio .. versionadded:: 2.28 .. class:: SimpleActionGroup(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gio.ActionGroup`, :class:`~gi.repository.Gio.ActionMap` ``GSimpleActionGroup`` is a hash table filled with :obj:`~gi.repository.Gio.Action` objects, implementing the :obj:`~gi.repository.Gio.ActionGroup` and :obj:`~gi.repository.Gio.ActionMap` interfaces. Constructors ------------ .. rst-class:: interim-class .. class:: SimpleActionGroup :no-index: .. classmethod:: new() -> ~gi.repository.Gio.SimpleActionGroup Creates a new, empty, :obj:`~gi.repository.Gio.SimpleActionGroup`\. .. versionadded:: 2.28 Methods ------- .. rst-class:: interim-class .. class:: SimpleActionGroup :no-index: .. method:: add_entries(entries: list[~gi.repository.Gio.ActionEntry], user_data: ~typing.Any = None) -> None A convenience function for creating multiple :obj:`~gi.repository.Gio.SimpleAction` instances and adding them to the action group. .. versionadded:: 2.30 .. deprecated:: 2.38 Use :func:`~gi.repository.Gio.ActionMap.add_action_entries` :param entries: a pointer to the first item in an array of :obj:`~gi.repository.Gio.ActionEntry` structs :param user_data: the user data for signal connections .. method:: insert(action: ~gi.repository.Gio.Action) -> None Adds an action to the action group. If the action group already contains an action with the same name as ``action`` then the old action is dropped from the group. The action group takes its own reference on ``action``\. .. versionadded:: 2.28 .. deprecated:: 2.38 Use :func:`~gi.repository.Gio.ActionMap.add_action` :param action: a :obj:`~gi.repository.Gio.Action` .. method:: lookup(action_name: str) -> ~gi.repository.Gio.Action Looks up the action with the name ``action_name`` in the group. If no such action exists, returns :const:`None`. .. versionadded:: 2.28 .. deprecated:: 2.38 Use :func:`~gi.repository.Gio.ActionMap.lookup_action` :param action_name: the name of an action .. method:: remove(action_name: str) -> None Removes the named action from the action group. If no action of this name is in the group then nothing happens. .. versionadded:: 2.28 .. deprecated:: 2.38 Use :func:`~gi.repository.Gio.ActionMap.remove_action` :param action_name: the name of the action Fields ------ .. rst-class:: interim-class .. class:: SimpleActionGroup :no-index: .. attribute:: parent_instance .. attribute:: priv