PopoverMenu.newFromModelFull
gtk.popover_menu.PopoverMenu newFromModelFull(gio.menu_model.MenuModel model, gtk.types.PopoverMenuFlags flags)Creates a gtk.popover_menu.PopoverMenu and populates it according to model.
The created buttons are connected to actions found in the action groups that are accessible from the parent widget. This includes the gtk.application_window.ApplicationWindow to which the popover belongs. Actions can also be added using gtk.widget.Widget.insertActionGroup on the parent widget or on any of its parent widgets.
Parameters
model | a gio.menu_model.MenuModel |
flags | flags that affect how the menu is created |
Returns
the new gtk.popover_menu.PopoverMenu