D-Bus menu#

class ignis.dbus_menu.DBusMenu(proxy: DBusProxy)#

Bases: Gtk.PopoverMenu

Like DbusmenuGtk3, but for GTK4.

The bus must provide the com.canonical.dbusmenu D-Bus interface.

classmethod new(name: str, object_path: str) DBusMenu#

Synchronously initialize a new instance.

Parameters:
  • name (str) -- A bus name (well-known or unique).

  • object_path (str) -- An object path to the menu.

Return type:

DBusMenu

Returns:

The newly initialized instance.

async classmethod new_async(name: str, object_path: str) DBusMenu#

Asynchronously initialize a new instance.

Parameters:
  • name (str) -- A bus name (well-known or unique).

  • object_path (str) -- An object path to the menu.

Return type:

DBusMenu

Returns:

The newly initialized instance.

gproperty name: str#
  • read-only

A bus name (well-known or unique).

gproperty object_path: str#
  • read-only

An object path to the menu.

copy() DBusMenu#

Create a copy of this instance.

Returns:

A copy of this instance.

Return type:

DBusMenu

async copy_async() DBusMenu#

Asynchronously create a copy of this instance.

Returns:

A copy of this instance.

Return type:

DBusMenu