schrodinger.application.models.gui.menus module

Context menus for model-related interactions. Each menu class encapsulates the actions and signals for a specific model type.

class schrodinger.application.models.gui.menus.ActionText

Bases: object

Namespace for menu action texts

EDIT = 'Edit'
DELETE = 'Delete'
VIEW_CONFIGURATIONS = 'View configurations'
VIEW_RECEIPTS_COMING_SOON = 'View receipts (coming soon)'
COPY = 'Copy'
RUN_MODEL = 'Run model'
VIEW_RECEIPTS = 'View Receipts'
CREATE_CHILD = 'Create child'
CREATE_SIBLING = 'Create sibling'
VIEW_RECEIPT_COMING_SOON = 'View receipt (coming soon)'
RE_RUN_MODEL = 'Re-run model'
class schrodinger.application.models.gui.menus.ModelDefinitionMenu(*args, **kwargs)

Bases: _ModelMenu

Context menu for model definitions.

viewConfigurationsClicked

A pyqtSignal emitted by instances of the class.

copyClicked

A pyqtSignal emitted by instances of the class.

editClicked

A pyqtSignal emitted by instances of the class.

deleteClicked

A pyqtSignal emitted by instances of the class.

setReceiptsVisible(visible: bool) None

Show or hide receipt-related actions.

Parameters:

visible – Whether receipt actions should be visible

class schrodinger.application.models.gui.menus.ModelConfigurationMenu(*args, **kwargs)

Bases: _ModelMenu

Context menu for model configurations.

runModelClicked

A pyqtSignal emitted by instances of the class.

viewReceiptsClicked

A pyqtSignal emitted by instances of the class.

createChildClicked

A pyqtSignal emitted by instances of the class.

copyClicked

A pyqtSignal emitted by instances of the class.

editClicked

A pyqtSignal emitted by instances of the class.

deleteClicked

A pyqtSignal emitted by instances of the class.

showForModel(config: ModelConfiguration, pos: QPoint, is_runnable: bool = True) None
setRunModelVisible(visible: bool) None

Show or hide the run model action and its trailing separator.

Parameters:

visible – Whether the run action should be visible

setReceiptsVisible(visible: bool) None

Show or hide receipt-related actions.

Parameters:

visible – Whether receipt actions should be visible

class schrodinger.application.models.gui.menus.ReceiptMenu(*args, **kwargs)

Bases: _ModelMenu

Context menu for execution records (receipts).

viewReceiptClicked

A pyqtSignal emitted by instances of the class.

reRunModelClicked

A pyqtSignal emitted by instances of the class.