magscope.ui.widgets#
” Miscellaneous custom Qt widgets for the GUI
Classes#
Horizontally combined QLabel, QLineedit, and a second QLabel to show the value. |
|
Horizontally combined QLabel and QLineedit. |
|
Horizontally combined QLabel and QCheckbox. |
|
Horizontally combined QLabel and QLineedit with a QButton to increment/decrement the value on either side. |
|
A collapsible QGroupBox with the title text as a toggle button to show/hide its content |
|
Simple class for adding '...' to QSplitter handles. |
|
Simple class for adding '...' to QSplitter handles. |
|
Custom QLabel that emits a signal when it's resized. |
Module Contents#
- class magscope.ui.widgets.LabeledLineEditWithValue(*, label_text: str, validator: PyQt6.QtGui.QValidator = None, widths: tuple[int, int, int] = (0, 0, 0), default=None, callback: callable = None)[source]#
Bases:
PyQt6.QtWidgets.QWidgetHorizontally combined QLabel, QLineedit, and a second QLabel to show the value.
- class magscope.ui.widgets.LabeledLineEdit(*, label_text: str, widths: tuple[int, int] = (0, 0), default=None, validator: PyQt6.QtGui.QValidator = None, callback: callable = None)[source]#
Bases:
PyQt6.QtWidgets.QWidgetHorizontally combined QLabel and QLineedit.
- class magscope.ui.widgets.LabeledCheckbox(*, label_text: str, widths: tuple[int, int] = (0, 0), default=False, callback: callable = None)[source]#
Bases:
PyQt6.QtWidgets.QWidgetHorizontally combined QLabel and QCheckbox.
- class magscope.ui.widgets.LabeledStepperLineEdit(*, label_text: str, left_button_text: str, right_button_text: str, widths: tuple[int, int, int, int] = (0, 0, 0, 0), default=None, validator: PyQt6.QtGui.QValidator = None, callbacks: tuple[callable, callable, callable] = (None, None, None))[source]#
Bases:
PyQt6.QtWidgets.QWidgetHorizontally combined QLabel and QLineedit with a QButton to increment/decrement the value on either side.
- class magscope.ui.widgets.CollapsibleGroupBox(title='', collapsed=False)[source]#
Bases:
PyQt6.QtWidgets.QGroupBoxA collapsible QGroupBox with the title text as a toggle button to show/hide its content
- class magscope.ui.widgets.GripHandle(orientation, parent)[source]#
Bases:
PyQt6.QtWidgets.QSplitterHandleSimple class for adding ‘…’ to QSplitter handles.
- class magscope.ui.widgets.GripSplitter(orientation, name=None, parent=None)[source]#
Bases:
PyQt6.QtWidgets.QSplitterSimple class for adding ‘…’ to QSplitter handles.
- class magscope.ui.widgets.BeadGraphic(parent: magscope.ui.ui.UIManager, id: int, roi: tuple[int, int, int, int], view_scene)[source]#
Bases:
PyQt6.QtWidgets.QGraphicsRectItem- _parent: magscope.ui.ui.UIManager[source]#
- classmethod label_scene_position_for_roi(roi: tuple[int, int, int, int]) PyQt6.QtCore.QPointF[source]#
- classmethod clamp_roi_to_scene(roi: tuple[int, int, int, int], scene_rect: PyQt6.QtCore.QRectF) tuple[int, int, int, int][source]#
- classmethod move_roi(roi: tuple[int, int, int, int], dx: int, dy: int, scene_rect: PyQt6.QtCore.QRectF) tuple[int, int, int, int][source]#
- set_selection_state(state: str)[source]#
Update the bead overlay color to match selection/reference state.