schrodinger.ui.qt.mapperwidgets.param_editor module¶
- class schrodinger.ui.qt.mapperwidgets.param_editor.ParamEditor(param=None, *args, **kwargs)¶
Bases:
schrodinger.models.mappers.TargetMixin
,schrodinger.ui.qt.basewidgets.BaseWidget
- __init__(param=None, *args, **kwargs)¶
- initSetUp()¶
Creates widget from
ui
and stores itui_widget
.Suggested subclass use: create and initialize subwidgets, and connect signals.
- initLayOut()¶
Create a vertical layout for the widget (
widget_layout
) and populate it with two vertical sub-layouts:main_layout
andbottom_layout
.If the user has specified the
ui
data member, insert the resultantui_widget
intomain_layout
.If the widget already has a layout defined, this method will produce a warning (but not a traceback).
main_layout
andbottom_layout
will be inserted into the existing widget layout, which will not be the same aswidget_layout
. It is therefore recommended that this mixin is used only with widgets that do not already have a layout.Suggested subclass use: create, initialize, and populate layouts.
- setParam(param)¶
- targetGetValue()¶
- targetSetValue(value)¶
- class schrodinger.ui.qt.mapperwidgets.param_editor.DynamicTypeDelegate(*args, **kwargs)¶
Bases:
schrodinger.ui.qt.delegates.AbstractDelegateWithEditIcon
Delegate for displaying and editing the value of a param.
This delegate changes behavior depending on the param type for that given cell. For example, a bool param will display an interactable checkbox, while a string param will display text that can be edited with a line edit.
- paint(self, painter: Optional[QPainter], option: QStyleOptionViewItem, index: QModelIndex)¶
- editorEvent(self, event: Optional[QEvent], model: Optional[QAbstractItemModel], option: QStyleOptionViewItem, index: QModelIndex) bool ¶
- createEditor(self, parent: Optional[QWidget], option: QStyleOptionViewItem, index: QModelIndex) Optional[QWidget] ¶
- setEditorData(self, editor: Optional[QWidget], index: QModelIndex)¶
- helpEvent(self, event: Optional[QHelpEvent], view: Optional[QAbstractItemView], option: QStyleOptionViewItem, index: QModelIndex) bool ¶
- setModelData(self, editor: Optional[QWidget], model: Optional[QAbstractItemModel], index: QModelIndex)¶
- class schrodinger.ui.qt.mapperwidgets.param_editor.Coord(*args, _param_type=<object object>, **kwargs)¶
Bases:
schrodinger.models.parameters.CompoundParam
- w: str¶
A parameter of the class.
- x: float¶
A parameter of the class.
- y: int¶
A parameter of the class.
- z: bool¶
A parameter of the class.
- wChanged¶
A
pyqtSignal
emitted by instances of the class.
- wReplaced¶
A
pyqtSignal
emitted by instances of the class.
- xChanged¶
A
pyqtSignal
emitted by instances of the class.
- xReplaced¶
A
pyqtSignal
emitted by instances of the class.
- yChanged¶
A
pyqtSignal
emitted by instances of the class.
- yReplaced¶
A
pyqtSignal
emitted by instances of the class.
- zChanged¶
A
pyqtSignal
emitted by instances of the class.
- zReplaced¶
A
pyqtSignal
emitted by instances of the class.
- class schrodinger.ui.qt.mapperwidgets.param_editor.Atom(*args, _param_type=<object object>, **kwargs)¶
Bases:
schrodinger.models.parameters.CompoundParam
- test_dict: Dict¶
A parameter of the class.
- coord: schrodinger.ui.qt.mapperwidgets.param_editor.Coord¶
A parameter of the class.
- mass: float¶
A parameter of the class.
- test_enum: schrodinger.ui.qt.mapperwidgets.param_editor.MyEnum¶
A parameter of the class.
- test_enum2: schrodinger.ui.qt.mapperwidgets.param_editor.MyEnum¶
A parameter of the class.
- coordChanged¶
A
pyqtSignal
emitted by instances of the class.
- coordReplaced¶
A
pyqtSignal
emitted by instances of the class.
- massChanged¶
A
pyqtSignal
emitted by instances of the class.
- massReplaced¶
A
pyqtSignal
emitted by instances of the class.
- test_dictChanged¶
A
pyqtSignal
emitted by instances of the class.
- test_dictReplaced¶
A
pyqtSignal
emitted by instances of the class.
- test_enum2Changed¶
A
pyqtSignal
emitted by instances of the class.
- test_enum2Replaced¶
A
pyqtSignal
emitted by instances of the class.
- test_enumChanged¶
A
pyqtSignal
emitted by instances of the class.
- test_enumReplaced¶
A
pyqtSignal
emitted by instances of the class.
- test_listChanged¶
A
pyqtSignal
emitted by instances of the class.
- test_listReplaced¶
A
pyqtSignal
emitted by instances of the class.
- schrodinger.ui.qt.mapperwidgets.param_editor.main()¶