:right-sidebar: True DBusMenuModel =================================================================== .. currentmodule:: gi.repository.Gio .. class:: DBusMenuModel(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gio.MenuModel`, :class:`~gi.repository.GObject.Object` ``GDBusMenuModel`` is an implementation of :obj:`~gi.repository.Gio.MenuModel` that can be used as a proxy for a menu model that is exported over D-Bus with :obj:`~gi.repository.Gio.DBusConnection.export_menu_model`\. Methods ------- .. rst-class:: interim-class .. class:: DBusMenuModel :no-index: .. classmethod:: get(bus_name: str | None, object_path: str) -> ~gi.repository.Gio.DBusMenuModel Obtains a :obj:`~gi.repository.Gio.DBusMenuModel` for the menu model which is exported at the given ``bus_name`` and ``object_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. .. versionadded:: 2.32 :param bus_name: the bus name which exports the menu model or :const:`None` if ``connection`` is not a message bus connection :param object_path: the object path at which the menu model is exported