Class MenuItemKind
- class ooodev.gui.menu.item.MenuItemKind(value)[source]
An enumeration.
- static from_str(s)[source]
Gets an
MenuItemKind
instance from string.- Parameters:
s (str) – String that represents the name of an enum Name.
s
is case insensitive and can beCamelCase
,pascal_case
,snake_case
,hyphen-case
,normal case
.- Raises:
ValueError – If input string is empty.
AttributeError – If unable to get
MenuItemKind
instance.
- Returns:
Enum instance.
- Return type:
- ITEM = 2
Menu Item
- ITEM_SUBMENU = 3
Menu Item with Submenu
- SEP = 1
Menu Separator