pyqt_reactive.widgets.no_scroll_spinbox
No-scroll spinbox widgets for PyQt6.
Prevents accidental value changes from mouse wheel events.
Classes
|
Value ownership state for None-aware checkboxes. |
Shared wheel-event policy for widgets that should not scroll values. |
|
|
ComboBox that ignores wheel events to prevent accidental value changes. |
|
DoubleSpinBox that ignores wheel events to prevent accidental value changes. |
|
SpinBox that ignores wheel events to prevent accidental value changes. |
|
QCheckBox that supports None state for lazy dataclass contexts. |
- class pyqt_reactive.widgets.no_scroll_spinbox.IgnoreWheelEventMixin[source]
Shared wheel-event policy for widgets that should not scroll values.
- class pyqt_reactive.widgets.no_scroll_spinbox.NoScrollSpinBox(parent=None)[source]
SpinBox that ignores wheel events to prevent accidental value changes.
Inherits from SpinBoxAdapter which already implements ValueGettable/ValueSettable ABCs.
- class pyqt_reactive.widgets.no_scroll_spinbox.NoScrollDoubleSpinBox(parent=None)[source]
DoubleSpinBox that ignores wheel events to prevent accidental value changes.
Inherits from DoubleSpinBoxAdapter which already implements ValueGettable/ValueSettable ABCs.
- class pyqt_reactive.widgets.no_scroll_spinbox.NoScrollComboBox(parent=None, placeholder='')[source]
ComboBox that ignores wheel events to prevent accidental value changes.
Inherits from ComboBoxAdapter which already implements ValueGettable/ValueSettable ABCs. Supports placeholder text when currentIndex == -1 (for None values).
- class pyqt_reactive.widgets.no_scroll_spinbox.CheckboxValueState(*values)[source]
Value ownership state for None-aware checkboxes.
- PLACEHOLDER = 'placeholder'
- CONCRETE = 'concrete'
- class pyqt_reactive.widgets.no_scroll_spinbox.NoneAwareCheckBox(parent=None)[source]
QCheckBox that supports None state for lazy dataclass contexts.
Shows inherited value as grayed placeholder when value is None. Clicking converts placeholder to explicit value.
- PLACEHOLDER_PAINT_OPACITY = 0.45
- connect_change_signal(callback: Callable[[bool | None], None]) None[source]
Implement ChangeSignalEmitter ABC.
- disconnect_change_signal(callback: Callable[[bool | None], None]) None[source]
Implement ChangeSignalEmitter ABC.
- set_placeholder_preview(checked: bool) None[source]
Display an inherited checkbox value without making it concrete.
- set_resolved_value_preview(value) None[source]
Display an inherited resolved bool while preserving raw None.