SourceClass MenuBar
from egui import MenuBarclass MenuBar:Horizontal menu bar where you can add MenuButtons.
The menu bar goes well in a egui.Panel.top,
but can also be placed in a egui.Window.
In the latter case you may want to wrap it in Frame.
Example:
Methods§
Sourcedef config(self, /, config: MenuConfig) -> MenuBar§
Set the config for submenus.
Note: The config will only be passed when using MenuButton, not via Popup.menu.
@staticmethod
def default() -> MenuBar§
def show(self, /) -> Any§
Sourcedef style(self, /, style: StyleModifier) -> MenuBar§
Set the style for buttons in the menu bar.
Doesn't affect the style of submenus, use MenuConfig.style for that.
Default is menu_style.
Sourcedef ui(self, /) -> Any§
Show the menu bar.