DBusActionGroup#
Superclasses: Object
Implemented Interfaces: ActionGroup, RemoteActionGroup
GDBusActionGroup is an implementation of the ActionGroup
interface.
GDBusActionGroup can be used as a proxy for an action group
that is exported over D-Bus with export_action_group.
Methods#
- class DBusActionGroup
- classmethod get(bus_name: str | None, object_path: str) DBusActionGroup#
Obtains a
DBusActionGroupfor the action group which is exported at the givenbus_nameandobject_path.The thread default main context is taken at the time of this call. All signals on the menu model (and any linked models) are reported with respect to this context. All calls on the returned menu model (and linked models) must also originate from this same context, with the thread default main context unchanged.
This call is non-blocking. The returned action group may or may not already be filled in. The correct thing to do is connect the signals for the action group to monitor for changes and then to call
list_actions()to get the initial list.Added in version 2.32.
- Parameters:
bus_name – the bus name which exports the action group or
Noneifconnectionis not a message bus connectionobject_path – the object path at which the action group is exported