schrodinger.application.models.gui.tables module¶
- class schrodinger.application.models.gui.tables.TableWidget(*args, spec=None, autospec=False, plp=None, view=None, **kwargs)¶
Bases:
PLPTableWidget- initSetUp()¶
Creates widget from
uiand stores itui_widget.Suggested subclass use: create and initialize subwidgets, and connect signals.
- scrollToParam(param: CompoundParam) None¶
- Default = 'default'¶
- Panel = 'panel'¶
- class schrodinger.application.models.gui.tables.DefaultRowTable(*args, spec=None, autospec=False, plp=None, view=None, **kwargs)¶
Bases:
TableWidget- addDefaultRow() None¶
Add a default row to the table. This should be implemented in subclasses to define what a default row looks like.
- defineDefaultRow() CompoundParam¶
- Default = 'default'¶
- Panel = 'panel'¶
- class schrodinger.application.models.gui.tables.TableWidgetWithContextMenu(*args, spec=None, autospec=False, plp=None, view=None, **kwargs)¶
Bases:
TableWidgetBase class for library tables with context menu support.
Subclasses should set
self.menuto an appropriate menu instance and implement_showContextMenuto show the menu for a given row.- initSetUp()¶
Creates widget from
uiand stores itui_widget.Suggested subclass use: create and initialize subwidgets, and connect signals.
- Default = 'default'¶
- Panel = 'panel'¶
- class schrodinger.application.models.gui.tables.PLPSortFilterProxyModel¶
Bases:
QSortFilterProxyModel- getParamFromSourceRow(source_row: int) ModelConfiguration¶
- schrodinger.application.models.gui.tables.get_enum_name_display(member: Enum) str¶
Return a display representation for an enum member name.
- class schrodinger.application.models.gui.tables.InputDefTableSpec(*args, _param_type=<object object>, **kwargs)¶
Bases:
TableSpec- name_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>¶
- display_name_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>¶
- docstring_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>¶
- default_val_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>¶
- input_type_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>¶
- is_column_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>¶
- getCheckState(is_checked: bool) bool¶
- getIsColumnToolTip(is_column: bool) str¶
- columnsChanged¶
A
pyqtSignalemitted by instances of the class.
- columnsReplaced¶
A
pyqtSignalemitted by instances of the class.
- class schrodinger.application.models.gui.tables.InputDefTableWidget(*args, **kwargs)¶
Bases:
DefaultRowTable- __init__(*args, **kwargs)¶
- Parameters:
spec (TableSpec) – Table specification. Will be ignored if autospec is True.
autospec (bool) – Whether to automatically generate the table specification from the PLP item fields.
plp (ParamListParam) – ParamListParam containing data. It is more common to set the plp using mappers.
view (QtWidgets.QTableView) – Custom table view instance. If None, an instance of table_helper.SampleDataTableView will be created.
- Default = 'default'¶
- Panel = 'panel'¶
- class schrodinger.application.models.gui.tables.OutputDefTableSpec(*args, _param_type=<object object>, **kwargs)¶
Bases:
TableSpec- name_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>¶
- display_name_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>¶
- docstring_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>¶
- output_type_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>¶
- getOutputTypeDisplay(output_type: OutputType) str¶
- getOutputType(output_type: OutputType) OutputType¶
- getOutputTypeComboItems(output_type: OutputType) dict[str, OutputType]¶
- columnsChanged¶
A
pyqtSignalemitted by instances of the class.
- columnsReplaced¶
A
pyqtSignalemitted by instances of the class.
- class schrodinger.application.models.gui.tables.OutputDefTableWidget(*args, **kwargs)¶
Bases:
DefaultRowTable- __init__(*args, **kwargs)¶
- Parameters:
spec (TableSpec) – Table specification. Will be ignored if autospec is True.
autospec (bool) – Whether to automatically generate the table specification from the PLP item fields.
plp (ParamListParam) – ParamListParam containing data. It is more common to set the plp using mappers.
view (QtWidgets.QTableView) – Custom table view instance. If None, an instance of table_helper.SampleDataTableView will be created.
- Default = 'default'¶
- Panel = 'panel'¶
- class schrodinger.application.models.gui.tables.ValueMode¶
Bases:
Enum- CUSTOM = 1¶
- INHERITED = 2¶
- UNSPECIFIED = 3¶
- class schrodinger.application.models.gui.tables.CompositeInputTableSpec(*args, _param_type=<object object>, **kwargs)¶
Bases:
TableSpec- name_col = <schrodinger.ui.qt.mapperwidgets.plptable.ParamColumn object>¶
- value_col = <schrodinger.ui.qt.mapperwidgets.plptable.ParamColumn object>¶
- value_mode_col = <schrodinger.ui.qt.mapperwidgets.plptable.ParamColumn object>¶
- type_col = <schrodinger.ui.qt.mapperwidgets.plptable.ParamColumn object>¶
- child_constraint_col = <schrodinger.ui.qt.mapperwidgets.plptable.ParamColumn object>¶
- getInputName(composite_input: CompositeInput) str¶
- getInputValueDisplay(composite_input)¶
- getInputValueTextColor(composite_input)¶
- setInputValue(composite_input, value)¶
- valueColFlags(all_rows, this_row)¶
- getValueModeDisplay(composite_input: CompositeInput) str¶
- getValueMode(composite_input: CompositeInput) ValueMode¶
- setValueMode(composite_input: CompositeInput, value_mode: ValueMode) None¶
- getValueModeComboItems(composite_input: CompositeInput) dict[str, ValueMode]¶
- valueModeColFlags(all_rows, this_row)¶
- getInputTypeDisplay(composite_input: CompositeInput) str¶
- getChildConstraintDisplay(composite_input: CompositeInput) str¶
- getChildConstraint(composite_input: CompositeInput) ChildConstraint¶
- setChildConstraint(composite_input: CompositeInput, constraint: ChildConstraint) None¶
- getChildConstraintComboItems(composite_input: CompositeInput) dict[str, ChildConstraint]¶
- getBackgroundColor(composite_input: CompositeInput) QColor¶
- getInvalidInputToolTip(composite_input: CompositeInput) QColor¶
- columnsChanged¶
A
pyqtSignalemitted by instances of the class.
- columnsReplaced¶
A
pyqtSignalemitted by instances of the class.
- class schrodinger.application.models.gui.tables.CompositeInputProxyModel¶
Bases:
PLPSortFilterProxyModel- filterAcceptsRow(self, source_row: int, source_parent: QModelIndex) bool¶
- class schrodinger.application.models.gui.tables.CompositeInputTableWidget(*args, **kwargs)¶
Bases:
TableWidget- __init__(*args, **kwargs)¶
- Parameters:
spec (TableSpec) – Table specification. Will be ignored if autospec is True.
autospec (bool) – Whether to automatically generate the table specification from the PLP item fields.
plp (ParamListParam) – ParamListParam containing data. It is more common to set the plp using mappers.
view (QtWidgets.QTableView) – Custom table view instance. If None, an instance of table_helper.SampleDataTableView will be created.
- Default = 'default'¶
- Panel = 'panel'¶
- class schrodinger.application.models.gui.tables.DefinitionsTableSpec(*args, _param_type=<object object>, **kwargs)¶
Bases:
TableSpec- name_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>¶
- description_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>¶
- version_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>¶
- columnsChanged¶
A
pyqtSignalemitted by instances of the class.
- columnsReplaced¶
A
pyqtSignalemitted by instances of the class.
- class schrodinger.application.models.gui.tables.DefinitionsTableWidget(*args, **kwargs)¶
Bases:
TableWidgetWithContextMenu- viewConfigurationsClicked¶
A
pyqtSignalemitted by instances of the class.
- editDefinitionClicked¶
A
pyqtSignalemitted by instances of the class.
- __init__(*args, **kwargs)¶
- Parameters:
spec (TableSpec) – Table specification. Will be ignored if autospec is True.
autospec (bool) – Whether to automatically generate the table specification from the PLP item fields.
plp (ParamListParam) – ParamListParam containing data. It is more common to set the plp using mappers.
view (QtWidgets.QTableView) – Custom table view instance. If None, an instance of table_helper.SampleDataTableView will be created.
- setFilterString(filter_str: str) None¶
- Default = 'default'¶
- Panel = 'panel'¶
- class schrodinger.application.models.gui.tables.ConfigurationsTableSpec(*args, _param_type=<object object>, **kwargs)¶
Bases:
TableSpec- name_col = <schrodinger.ui.qt.mapperwidgets.plptable.ParamColumn object>¶
- description_col = <schrodinger.ui.qt.mapperwidgets.plptable.ParamColumn object>¶
- version_col = <schrodinger.ui.qt.mapperwidgets.plptable.ParamColumn object>¶
- __init__()¶
- getConfigDisplayName(model_config) str¶
- getConfigDescription(model_config) str¶
- getConfigVersion(model_config) str¶
- getBackgroundColor(model_config: ModelConfiguration)¶
- getToolTipText(model_config: ModelConfiguration)¶
- columnsChanged¶
A
pyqtSignalemitted by instances of the class.
- columnsReplaced¶
A
pyqtSignalemitted by instances of the class.
- class schrodinger.application.models.gui.tables.ConfigurationsProxyModel(*args, **kwargs)¶
Bases:
PLPSortFilterProxyModelA proxy model that implements filtering certain rows based on different categories.
- __init__(*args, **kwargs)¶
- setFilterString(filter_str: str) None¶
- filterAcceptsRow(self, source_row: int, source_parent: QModelIndex) bool¶
- class schrodinger.application.models.gui.tables.ConfigurationsTableWidget(*args, **kwargs)¶
Bases:
TableWidgetWithContextMenu- runModelClicked¶
A
pyqtSignalemitted by instances of the class.
- viewReceiptsClicked¶
A
pyqtSignalemitted by instances of the class.
- editConfigurationClicked¶
A
pyqtSignalemitted by instances of the class.
- createChildConfigClicked¶
A
pyqtSignalemitted by instances of the class.
- __init__(*args, **kwargs)¶
- Parameters:
spec (TableSpec) – Table specification. Will be ignored if autospec is True.
autospec (bool) – Whether to automatically generate the table specification from the PLP item fields.
plp (ParamListParam) – ParamListParam containing data. It is more common to set the plp using mappers.
view (QtWidgets.QTableView) – Custom table view instance. If None, an instance of table_helper.SampleDataTableView will be created.
- setFilterString(filter_str: str) None¶
- Default = 'default'¶
- Panel = 'panel'¶
- schrodinger.application.models.gui.tables.get_timedelta_display(delta: timedelta) str¶
- class schrodinger.application.models.gui.tables.ExecutionRecordsTableSpec(*args, _param_type=<object object>, **kwargs)¶
Bases:
TableSpec- config_name_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>¶
- verion_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>¶
- start_time_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>¶
- runtime_col = <schrodinger.ui.qt.mapperwidgets.plptable.ParamColumn object>¶
- user_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>¶
- getConfigurationName(config_id: str)¶
- getDateTimeDisplay(dt: datetime) str¶
- getRuntimeDisplay(record: ExecutionRecord) str¶
- setConfigurationIdsToNames(config_ids_to_names: dict[str, str]) None¶
- columnsChanged¶
A
pyqtSignalemitted by instances of the class.
- columnsReplaced¶
A
pyqtSignalemitted by instances of the class.
- class schrodinger.application.models.gui.tables.ExecutionRecordsProxyModel(*args, **kwargs)¶
Bases:
PLPSortFilterProxyModel- __init__(*args, **kwargs)¶
- setConfigurationIds(config_ids: list[str]) None¶
- filterAcceptsRow(self, source_row: int, source_parent: QModelIndex) bool¶
- showAllReceipts()¶
- class schrodinger.application.models.gui.tables.ExecutionRecordsTableWidget(*args, **kwargs)¶
Bases:
TableWidgetWithContextMenu- viewReceiptClicked¶
A
pyqtSignalemitted by instances of the class.
- reRunModelClicked¶
A
pyqtSignalemitted by instances of the class.
- __init__(*args, **kwargs)¶
- Parameters:
spec (TableSpec) – Table specification. Will be ignored if autospec is True.
autospec (bool) – Whether to automatically generate the table specification from the PLP item fields.
plp (ParamListParam) – ParamListParam containing data. It is more common to set the plp using mappers.
view (QtWidgets.QTableView) – Custom table view instance. If None, an instance of table_helper.SampleDataTableView will be created.
- setConfigurationIdsToNames(config_ids_to_names: dict[str, str]) None¶
- setConfigurationIds(configuration_ids: list[str]) None¶
- showAllReceipts()¶
- Default = 'default'¶
- Panel = 'panel'¶
- class schrodinger.application.models.gui.tables.ConstraintDiffTableSpec(*args, _param_type=<object object>, **kwargs)¶
Bases:
TableSpec- input_name_col = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>¶
- old_constraint_col = <schrodinger.ui.qt.mapperwidgets.plptable.ParamColumn object>¶
- new_constraint_col = <schrodinger.ui.qt.mapperwidgets.plptable.ParamColumn object>¶
- getOldConstraintDisplay(diff: ConstraintDiff) str¶
- getNewConstraintDisplay(diff: ConstraintDiff) str¶
- getNewConstraintIconConfig(diff: ConstraintDiff) IconConfig | None¶
- columnsChanged¶
A
pyqtSignalemitted by instances of the class.
- columnsReplaced¶
A
pyqtSignalemitted by instances of the class.
- class schrodinger.application.models.gui.tables.ConstraintDiffTableWidget(*args, **kwargs)¶
Bases:
TableWidget- __init__(*args, **kwargs)¶
- Parameters:
spec (TableSpec) – Table specification. Will be ignored if autospec is True.
autospec (bool) – Whether to automatically generate the table specification from the PLP item fields.
plp (ParamListParam) – ParamListParam containing data. It is more common to set the plp using mappers.
view (QtWidgets.QTableView) – Custom table view instance. If None, an instance of table_helper.SampleDataTableView will be created.
- Default = 'default'¶
- Panel = 'panel'¶