SimpleActionGroup#
Added in version 2.28.
Superclasses: Object
Implemented Interfaces: ActionGroup, ActionMap
GSimpleActionGroup is a hash table filled with Action objects,
implementing the ActionGroup and ActionMap
interfaces.
Constructors#
- class SimpleActionGroup
 - classmethod new() SimpleActionGroup#
 Creates a new, empty,
SimpleActionGroup.Added in version 2.28.
Methods#
- class SimpleActionGroup
 - add_entries(entries: list[ActionEntry], user_data: Any = None) None#
 A convenience function for creating multiple
SimpleActioninstances and adding them to the action group.Added in version 2.30.
Deprecated since version 2.38: Use
add_action_entries()- Parameters:
 entries – a pointer to the first item in an array of
ActionEntrystructsuser_data – the user data for signal connections
- insert(action: Action) None#
 Adds an action to the action group.
If the action group already contains an action with the same name as
actionthen the old action is dropped from the group.The action group takes its own reference on
action.Added in version 2.28.
Deprecated since version 2.38: Use
add_action()- Parameters:
 action – a
Action
- lookup(action_name: str) Action#
 Looks up the action with the name
action_namein the group.If no such action exists, returns
None.Added in version 2.28.
Deprecated since version 2.38: Use
lookup_action()- Parameters:
 action_name – the name of an action
- 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.
Added in version 2.28.
Deprecated since version 2.38: Use
remove_action()- Parameters:
 action_name – the name of the action