schrodinger.application.models.gui.experimental_px.delegates.numeric module¶
Numeric delegates (integer and float) with SpinBox-based inline editing.
- class schrodinger.application.models.gui.experimental_px.delegates.numeric.IntDelegate(parent: QObject = None, draw_separator: bool = True)¶
Bases:
DelegateBaseDelegate with inline integer editing via SpinBox.
The spinbox range is set to the full 32-bit signed integer range.
- setEditorData(editor: QWidget, index: QModelIndex) None¶
Populate editor with current integer value.
- setModelData(editor: QWidget, model: QAbstractItemModel, index: QModelIndex) None¶
Save editor value back to model.
- class schrodinger.application.models.gui.experimental_px.delegates.numeric.FloatDelegate(parent: QObject = None, draw_separator: bool = True)¶
Bases:
IntDelegateDelegate with inline float editing via DoubleSpinBox.
Extends
IntDelegatewith decimal support and unbounded range.- setEditorData(editor: QWidget, index: QModelIndex) None¶
Populate editor with current float value.
- setModelData(editor: QWidget, model: QAbstractItemModel, index: QModelIndex) None¶
Save editor value back to model.