SourceClass MenuConfig
from egui import MenuConfigclass MenuConfig:Configuration and style for menus.
Methods§
Sourcedef close_behavior(self, /, close_behavior: PopupCloseBehavior) -> MenuConfig§
If the user clicks, should we close the menu?
@staticmethod
def default() -> MenuConfig§
Source@staticmethod
def find(ui: Ui) -> MenuConfig§
Find the config for the current menu.
Returns the default config if no config is found.
Sourcedef style(self, /, style: StyleModifier) -> MenuConfig§
Override the menu style.
Default is menu_style.