schrodinger.ui.sequencealignment.msv_menu module

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.

schrodinger.ui.sequencealignment.msv_menu.insertSublistAfterPath(path, sub_list, main_list)[source]

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'], ...]
schrodinger.ui.sequencealignment.msv_menu.insertSublistOneAfterPath(path, sub_list, main_list)[source]

just like insertSublistAfterPath, but used when separator between

schrodinger.ui.sequencealignment.msv_menu.indexOfMenuList(string_name, list)[source]

Get the index of the list containing a specific menu