Gio.SimpleActionGroup¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | GObject.Object (37), Gio.ActionGroup (14), Gio.ActionMap (4) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| class | new() | 
| add_entries(entries, user_data) | |
| insert(action) | |
| lookup(action_name) | |
| remove(action_name) | 
Virtual Methods¶
| Inherited: | GObject.Object (7), Gio.ActionGroup (14), Gio.ActionMap (3) | 
|---|
Properties¶
None
Signals¶
| Inherited: | GObject.Object (1), Gio.ActionGroup (4) | 
|---|
Fields¶
| Inherited: | GObject.Object (1), Gio.ActionGroup (4) | 
|---|
| Name | Type | Access | Description | 
|---|---|---|---|
| parent_instance | GObject.Object | r | 
Class Details¶
- 
class Gio.SimpleActionGroup(**kwargs)¶
- Bases: - GObject.Object,- Gio.ActionGroup,- Gio.ActionMap- Abstract: - No - Structure: - Gio.SimpleActionGroupClass- Gio.SimpleActionGroupis a hash table filled with- Gio.Actionobjects, implementing the- Gio.ActionGroupand- Gio.ActionMapinterfaces.- New in version 2.28. - 
classmethod new()[source]¶
- Returns: - a new - Gio.SimpleActionGroup- Return type: - Gio.SimpleActionGroup- Creates a new, empty, - Gio.SimpleActionGroup.- New in version 2.28. 
 - 
add_entries(entries, user_data)[source]¶
- Parameters: - entries ([Gio.ActionEntry]) – a pointer to the first item in an array ofGio.ActionEntrystructs
- user_data (objectorNone) – the user data for signal connections
 - A convenience function for creating multiple - Gio.SimpleActioninstances and adding them to the action group.- New in version 2.30. - Deprecated since version 2.38: Use - Gio.ActionMap.add_action_entries()
- entries ([
 - 
insert(action)[source]¶
- Parameters: - action ( - Gio.Action) – a- Gio.Action- 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. - New in version 2.28. - Deprecated since version 2.38: Use - Gio.ActionMap.add_action()
 - 
lookup(action_name)[source]¶
- Parameters: - action_name ( - str) – the name of an action- Returns: - a - Gio.Action, or- None- Return type: - Gio.Action- Looks up the action with the name action_name in the group. - If no such action exists, returns - None.- New in version 2.28. - Deprecated since version 2.38: Use - Gio.ActionMap.lookup_action()
 - 
remove(action_name)[source]¶
- Parameters: - action_name ( - str) – the name of the action- Removes the named action from the action group. - If no action of this name is in the group then nothing happens. - New in version 2.28. - Deprecated since version 2.38: Use - Gio.ActionMap.remove_action()
 
- 
classmethod