gtk.popover_menu_bar
Module for PopoverMenuBar class
Types 3
gtk.popover_menu_bar.PopoverMenuBar presents a horizontal bar of items that pop up popover menus when clicked.
The only way to create instances of gtk.popover_menu_bar.PopoverMenuBar is from a gio.menu_model.MenuModel.
CSS nodes
menubar
├── item[.active]
┊ ╰── popover
╰── item
╰── popovergtk.popover_menu_bar.PopoverMenuBar has a single CSS node with name menubar, below which each item has its CSS node, and below that the corresponding popover.
The item whose popover is currently open gets the .active style class.
Accessibility
gtk.popover_menu_bar.PopoverMenuBar uses the gtk.types.AccessibleRole.MenuBar role, the menu items use the gtk.types.AccessibleRole.MenuItem role and the menus use the gtk.types.AccessibleRole.Menu role.
PopoverMenuBar self()Returns `this`, for use in `with` statements.PopoverMenuBarGidBuilder builder()Get builder for [gtk.popover_menu_bar.PopoverMenuBar] Returns: New builder objectgio.menu_model.MenuModel menuModel() @propertyGet `menuModel` property. Returns: The [gio.menu_model.MenuModel] from which the menu bar is created.void menuModel(gio.menu_model.MenuModel propval) @propertySet `menuModel` property. Params: propval = The [gio.menu_model.MenuModel] from which the menu bar is created.gtk.popover_menu_bar.PopoverMenuBar newFromModel(gio.menu_model.MenuModel model = null)Creates a [gtk.popover_menu_bar.PopoverMenuBar] from a [gio.menu_model.MenuModel].bool addChild(gtk.widget.Widget child, string id)Adds a custom widget to a generated menubar.gio.menu_model.MenuModel getMenuModel()Returns the model from which the contents of bar are taken. Returns: a [gio.menu_model.MenuModel]bool removeChild(gtk.widget.Widget child)Removes a widget that has previously been added with [gtk.popover_menu_bar.PopoverMenuBar.addChild].void setMenuModel(gio.menu_model.MenuModel model = null)Sets a menu model from which bar should take its contents.Fluent builder implementation template for gtk.popover_menu_bar.PopoverMenuBar
T menuModel(gio.menu_model.MenuModel propval)Set `menuModel` property. Params: propval = The [gio.menu_model.MenuModel] from which the menu bar is created.Fluent builder for gtk.popover_menu_bar.PopoverMenuBar
PopoverMenuBar build()Create object from builder. Returns: New object