actionAndMenu¶
Action¶
-
class
ORSServiceClass.actionAndMenu.action.Action(enterAction='', action='', exitAction='', actionDict=None)¶ Descriptor of an action.
Elements:
- enterAction (optional): string to be executed when the action starts
- action (optional): string to be executed when the action is activated
- exitAction (optional): string to be executed when the action ends
Menu¶
-
class
ORSServiceClass.actionAndMenu.menu.Menu(id_='', title='', section='', action='', visible=True, enabled=True, checked=False, submenu=None, menuDict=None)¶ Descriptor of a menu item.
Elements:
- id_: unique identifier
- title: string to display
- section: string to group menu items between separators in a menu
- action: name of an action to call, or explicit string to execute. Unused when there is at least 1 element in the
submenulist. - visible (optional): boolean to specify if that menu item should be visible in the menu
- enabled (optional): boolean to specify if that menu item should be enabled
- checked (optional): boolean to add a check mark next to the menu item
- submenu (optional): list of
Menuinstances, to obtain multiple sub-options from that menu item. Multiple sub-levels can be obtained.