DBusMenuModel#
Superclasses: MenuModel, Object
GDBusMenuModel is an implementation of MenuModel that can be
used as a proxy for a menu model that is exported over D-Bus with
export_menu_model.
Methods#
- class DBusMenuModel
- classmethod get(bus_name: str | None, object_path: str) → DBusMenuModel#
Obtains a
DBusMenuModelfor the menu model 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.
Added in version 2.32.
- Parameters:
bus_name – the bus name which exports the menu model or
Noneifconnectionis not a message bus connectionobject_path – the object path at which the menu model is exported