Home | 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 and Project Table menubar. Any level of menu depth can be accessed by calling this function with arbitrary number of arguments. First argument must be either 'Maestro'- for main window menus or 'ProjectTable' - for PT menus.. Example uses:: activateMenuItem('Maestro','Workspace', 'Surface', 'Selected Atoms') will click 'Workspace' --> 'Surface' --> 'Selected Atoms' from main window activateMenuItem('ProjectTable','Data','Add Property','By Type...') will click 'Data' --> 'Add Property' --> 'By Type..' from Project Table. Please see QA-2423 and MAE-39441 to know more. |
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...") |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Aug 8 02:52:36 2017 | http://epydoc.sourceforge.net |