gtk.menu_bar
Module for [MenuBar] class
Types 3
classMenuBar : gtk.menu_shell.MenuShell
The #GtkMenuBar is a subclass of #GtkMenuShell which contains one or more #GtkMenuItems. The result is a standard menu bar which can hold many menu items.
CSS nodes
GtkMenuBar has a single CSS node with name menubar.
Methods
MenuBarGidBuilder builder()Get builder for [gtk.menu_bar.MenuBar] Returns: New builder objectgtk.types.PackDirection childPackDirection() @propertyGet `childPackDirection` property. Returns: The child pack direction of the menubar. It determines how the widgets contained in child menuitems are arranged.void childPackDirection(gtk.types.PackDirection propval) @propertySet `childPackDirection` property. Params: propval = The child pack direction of the menubar. It determines how the widgets contained in child menuitems are arranged.gtk.types.PackDirection packDirection() @propertyGet `packDirection` property. Returns: The pack direction of the menubar. It determines how menuitems are arranged in the menubar.void packDirection(gtk.types.PackDirection propval) @propertySet `packDirection` property. Params: propval = The pack direction of the menubar. It determines how menuitems are arranged in the menubar.gtk.menu_bar.MenuBar newFromModel(gio.menu_model.MenuModel model)Creates a new #GtkMenuBar and populates it with menu items and submenus according to model.gtk.types.PackDirection getChildPackDirection()Retrieves the current child pack direction of the menubar. See [gtk.menu_bar.MenuBar.setChildPackDirection]. Returns: the child pack directiongtk.types.PackDirection getPackDirection()Retrieves the current pack direction of the menubar. See [gtk.menu_bar.MenuBar.setPackDirection]. Returns: the pack directionvoid setChildPackDirection(gtk.types.PackDirection childPackDir)Sets how widgets should be packed inside the children of a menubar.void setPackDirection(gtk.types.PackDirection packDir)Sets how items should be packed inside a menubar.Methods
T childPackDirection(gtk.types.PackDirection propval)Set `childPackDirection` property. Params: propval = The child pack direction of the menubar. It determines how the widgets contained in child menuitems are arranged. Returns: Builder instance for ...T packDirection(gtk.types.PackDirection propval)Set `packDirection` property. Params: propval = The pack direction of the menubar. It determines how menuitems are arranged in the menubar. Returns: Builder instance for fluent chaining