schrodinger.application.models.gui.gui_models module

CompoundParam-based models for models2 GUIs. Not to be confused with LiveDesign models.

class schrodinger.application.models.gui.gui_models.ModelType

Bases: Enum

DEFINITION = 1
CONFIGURATION = 2
EXECUTION_RECORD = 3
class schrodinger.application.models.gui.gui_models.SaveMode

Bases: Enum

CREATE = 1
EDIT = 2
class schrodinger.application.models.gui.gui_models.DefinitionEditorModel(*args, _param_type=<object object>, **kwargs)

Bases: CompoundParam

definition: ModelDefinition

A parameter of the class.

save_mode: SaveMode

A parameter of the class.

overwrite_cur_version: bool

A parameter of the class.

definitionChanged

A pyqtSignal emitted by instances of the class.

definitionReplaced

A pyqtSignal emitted by instances of the class.

overwrite_cur_versionChanged

A pyqtSignal emitted by instances of the class.

overwrite_cur_versionReplaced

A pyqtSignal emitted by instances of the class.

save_modeChanged

A pyqtSignal emitted by instances of the class.

save_modeReplaced

A pyqtSignal emitted by instances of the class.

class schrodinger.application.models.gui.gui_models.ConfigurationEditorModel(*args, _param_type=<object object>, **kwargs)

Bases: CompoundParam

config: ModelConfiguration

A parameter of the class.

save_mode: SaveMode

A parameter of the class.

overwrite_cur_version: bool

A parameter of the class.

inputs: list[CompositeInput]

A parameter of the class.

orig_composite_model

This class can be used to declare a public attribute on a CompoundParam. Declared public attributes can be used without error.

Example usage:

class Coord(CompoundParam):
    x: int
    y: int
    note = NonParamAttribute()

coord = Coord()
coord.note = "hello" # No error
configChanged

A pyqtSignal emitted by instances of the class.

configReplaced

A pyqtSignal emitted by instances of the class.

inputsChanged

A pyqtSignal emitted by instances of the class.

inputsReplaced

A pyqtSignal emitted by instances of the class.

overwrite_cur_versionChanged

A pyqtSignal emitted by instances of the class.

overwrite_cur_versionReplaced

A pyqtSignal emitted by instances of the class.

save_modeChanged

A pyqtSignal emitted by instances of the class.

save_modeReplaced

A pyqtSignal emitted by instances of the class.

class schrodinger.application.models.gui.gui_models.ExecutionPanelModel(*args, _param_type=<object object>, **kwargs)

Bases: CompoundParam

task: ModelRunnerTask

A parameter of the class.

taskChanged

A pyqtSignal emitted by instances of the class.

taskReplaced

A pyqtSignal emitted by instances of the class.

class schrodinger.application.models.gui.gui_models.LibraryModel(*args, _param_type=<object object>, **kwargs)

Bases: CompoundParam

model_type: ModelType

A parameter of the class.

definitions: list[ModelDefinition]

A parameter of the class.

sel_definitions: list[ModelDefinition]

A parameter of the class.

configs: list[ModelConfiguration]

A parameter of the class.

sel_configs: list[ModelConfiguration]

A parameter of the class.

exec_records: list[ModelConfiguration]

A parameter of the class.

sel_exec_records: list[ModelConfiguration]

A parameter of the class.

model_name_query: str

A parameter of the class.

configsChanged

A pyqtSignal emitted by instances of the class.

configsReplaced

A pyqtSignal emitted by instances of the class.

definitionsChanged

A pyqtSignal emitted by instances of the class.

definitionsReplaced

A pyqtSignal emitted by instances of the class.

exec_recordsChanged

A pyqtSignal emitted by instances of the class.

exec_recordsReplaced

A pyqtSignal emitted by instances of the class.

model_name_queryChanged

A pyqtSignal emitted by instances of the class.

model_name_queryReplaced

A pyqtSignal emitted by instances of the class.

model_typeChanged

A pyqtSignal emitted by instances of the class.

model_typeReplaced

A pyqtSignal emitted by instances of the class.

sel_configsChanged

A pyqtSignal emitted by instances of the class.

sel_configsReplaced

A pyqtSignal emitted by instances of the class.

sel_definitionsChanged

A pyqtSignal emitted by instances of the class.

sel_definitionsReplaced

A pyqtSignal emitted by instances of the class.

sel_exec_recordsChanged

A pyqtSignal emitted by instances of the class.

sel_exec_recordsReplaced

A pyqtSignal emitted by instances of the class.