pyqt_reactive.widgets
Extended widget implementations.
Specialized widget subclasses that build on the protocol layer with enhanced behavior.
- class pyqt_reactive.widgets.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.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.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.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.
- set_placeholder_preview(checked: bool) None[source]
Display an inherited checkbox value without making it concrete.
- convert_placeholder_to_concrete() None[source]
Keep the displayed value but mark it as a user-controlled value.
- class pyqt_reactive.widgets.StatusIndicator(check_fn: Callable[[], Tuple[bool, str]] = None, color_scheme: ColorScheme = None, show_refresh: bool = True, debounce_ms: int = 2000, parent=None)[source]
Reusable status indicator with colored dot, label, and refresh button.
- Usage:
- indicator = StatusIndicator(
check_fn=lambda: my_service.test_connection(), color_scheme=self.color_scheme, parent=self
) layout.addWidget(indicator)
# check_fn returns Tuple[bool, str]: (is_ok, status_message) # True → CONNECTED state, False → DISCONNECTED state
- __init__(check_fn: Callable[[], Tuple[bool, str]] = None, color_scheme: ColorScheme = None, show_refresh: bool = True, debounce_ms: int = 2000, parent=None)[source]
- set_state(state: StatusState, message: str = None)[source]
Update visual state.
- class pyqt_reactive.widgets.StatusState(*values)[source]
Status indicator states — colors resolved from color scheme at runtime.
- UNKNOWN = 'Unknown'
- CHECKING = 'Checking...'
- CONNECTED = 'connected'
- DISCONNECTED = 'disconnected'
- WARNING = 'warning'
- pyqt_reactive.widgets.get_status_color(state: StatusState, color_scheme: ColorScheme) str[source]
Resolve status state to color from scheme.
Modules
Editor widgets - code editors, text editors, etc. |
|
Enhanced Path Widget for PyQt6 GUI |
|
LLM Chat Panel Widget |
|
PyQt6 Widget Utilities |
|
No-scroll spinbox widgets for PyQt6. |
|
Shared widget utilities and components. |
|
Status Bar Widget for PyQt6 |
|
Reusable status indicator widget with colored dot, label, and refresh button. |