PopoverMenuBar
Superclasses: Widget
, InitiallyUnowned
, Object
Implemented Interfaces: Accessible
, Buildable
, ConstraintTarget
- Constructors:
PopoverMenuBar(**properties)
new_from_model(model:Gio.MenuModel=None) -> Gtk.Widget
Constructors
Methods
- class PopoverMenuBar
- add_child(child: Widget, id: str) → bool
Adds a custom widget to a generated menubar.
For this to work, the menu model of
bar
must have an item with acustom
attribute that matchesid
.- Parameters:
child – the
GtkWidget
to addid – the ID to insert
child
at
- remove_child(child: Widget) → bool
Removes a widget that has previously been added with
add_child()
.- Parameters:
child – the
GtkWidget
to remove