SourceClass SubMenuButton
from egui import SubMenuButtonclass SubMenuButton:Constants§
RIGHT_ARROW: Final[str]§
Methods§
Sourcedef config(self, /, config: MenuConfig) -> SubMenuButton§
Set the config for the submenu.
The close behavior will not affect the current button, but the buttons in the submenu.
Source@staticmethod
def from_button(button: Button) -> SubMenuButton§
Create a new submenu button from a Button.
Use Button.right_text and SubMenuButton.arrow_atom to add the default right
arrow.
def show(self, /) -> Any§
Sourcedef ui(self, /) -> Any§
Show the submenu button.