GtkPopoverMenuis a subclass ofGtk.Popoverthat treats its children like menus and allows switching between them. [...]To add a child as a submenu, set the
#GtkPopoverMenu:submenuchild property to the name of the submenu.
I don't really understand how I should set submenus here: PopoverMenu has no attribute names submenu and it also appears to accept only a single widget as child. Every example of usage I see is in XML, which makes me think that this can not be define programmatically.
Please note: I'm using GTK3. I don't want to "import" from a MenuModel.
Just found it by myself:
Container#child_set_property(icon, property_name, value)Example of usage: