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: DelegateBase

Delegate 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: IntDelegate

Delegate with inline float editing via DoubleSpinBox.

Extends IntDelegate with 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.