Trees | Indices | Help |
|
---|
|
Functions for dynamically interacting with menus and menu items.
To use, add the following to the top of your test.py:
source( findFile( "scripts", "maestro/menubar.py" ))
Will append necessary objects to your objects.map. If one of the required names is already defined in your objects.map, it will not overwrite it unless you set OVERWRITE_OBJECTS=True before importing this module.
Copyright (c) Schrodinger, LLC. All rights reserved
|
|||
|
|||
|
|||
|
|||
|
|
Access the menu and menu items of Maestro main window menubar. Any level of menu depth can be accessed by calling this function with arbitrary number of arguments. Example uses: activateMenuItem( 'Applications', 'Strike', 'Predict...' ) will click 'Application' --> 'Strike' --> 'Predict...' |
Access AppFramework input selector where menu item text depends on selection / inclusion state of WS (see PANEL-5864 for details). For example: symbolicname = ":Amphiphilic Moment.use_from_combo_QComboBox" startswith = 'Workspace' mouseClick(waitForObject(symbolicname), 1, 1, 0, Qt.LeftButton) mouseClick(waitForObjectItemStartingWith(symbolicname, startswith), 1, 1, 0, Qt.LeftButton) will set input selector to 'Workspace (# included entries)' regardless of how many are included. |
This function helps to open a panel using Task Tool menu-item. Opens Tasks-> Browse menu using 'OpenTasksBrowseMenu' function. Open the given sub-menu and click on the menu-item. Usage: open_from_task_tool("Induced Fit Docking...") open_from_ask_tool("Glide", "Ligand Docking...") open_from_task_tool("Ligand Preparation and Library Design", "Reagent Preparation...") open_from_task_tool("Materials", "Stress Strain", "Analyze Results...") |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue May 2 06:32:57 2017 | http://epydoc.sourceforge.net |