SourceClass MenuState
from egui import MenuStateclass MenuState:Holds the state of the menu.
Properties§
@property
def open_item(self, /) -> Id |None§
@open_item.setter
def open_item(self, /, open_item: Id |None) -> None§
Methods§
Source@staticmethod
def from_id(ctx: Context, id: Id) -> MenuState§
Get the state via the menus root Ui id
Source@staticmethod
def from_ui(ui: Ui) -> MenuState§
Find the root of the menu and get the state