| Trees | Indices | Help |
|
|---|
|
|
Holds the list of all menu information including menu names, menu option names,
slots, tool tips, short cuts, and child lists.
[['menu name', ['action label', 'slot method name', 'tool tip',
'shortcut', 'set checkable', 'icon'],
['label2', 'slot', 'tool tip', 'shortcut', 'checkable', 'icon'],
['separator'], <-- if want a separator in the menu, put here
[.... ],
['2nd menu name', ['action label', ....],
['label for sub list', ['sub-action label', ....]
['sub-action label',....]
[...] ],
['3rd menu name', [..], [...] ] ]
This list will be used in msv's viewer.py to then create a dictionary of
label: actions and creates all the menus.
|
|||
|
|||
|
|||
|
|||
|
|||
maestro = get_maestro()
|
|||
SEPARATOR =
|
|||
MENU_LIST =
|
|||
IF_MAESTRO_INSERT =
|
|||
maestro_menu_list =
|
|||
MAESTRO_MENU_LIST =
|
|||
__package__ =
|
|||
lst =
|
|||
|
|||
Given the path of the action AFTER which you wish to insert the sublist,
inserts it into main_list.
For example, given path: "Color/Mark Residues/Red", and sub_list ["HELLO"],
inserts:
[Mark Residues,
['Red', 'viewerMarkResidues', '', '', '', ''],
['HELLO'], ...]
|
|
|||
MENU_LIST
|
IF_MAESTRO_INSERT
|
maestro_menu_list
|
MAESTRO_MENU_LIST
|
lst
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Aug 3 07:59:09 2016 | http://epydoc.sourceforge.net |