Class MAItem

class ooodev.gui.menu.ma.MAItem(*, label, command='', style=ItemStyleKind.NONE, shortcut='', submenu=None)[source]

Class for menu item data.

Parameters:
__init__(*, label, command='', style=ItemStyleKind.NONE, shortcut='', submenu=None)[source]
Parameters:
Return type:

None

is_separator()[source]

Check if menu item is a separator

Return type:

bool

to_dict()[source]

Convert to dictionary

Return type:

dict

property command: str | Command
Return type:

str | Command

property label: str
Return type:

str

property shortcut: Shortcut | str
Return type:

Shortcut | str

property style: ItemStyleKind
Return type:

ItemStyleKind

property submenu: List[MAItem]
Return type:

List[MAItem]