GridPlanWidget
GridPlanWidget
#
Bases: QScrollArea
Widget to edit a useq-schema
GridPlan.
fovHeight() -> float | None
#
Return the current field of view height.
fovWidth() -> float | None
#
Return the current field of view width.
mode() -> Mode
#
Return the current mode, one of "number", "area", or "bounds".
setFovHeight(value: float) -> None
#
Set the current field of view height.
setFovWidth(value: float) -> None
#
Set the current field of view width.
setMode(mode: Mode | Literal['number', 'area', 'bounds']) -> None
#
Set the current mode, one of "number", "area", or "bounds".
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mode
|
Mode | Literal['number', 'area', 'bounds']
|
The mode to set. |
required |
setValue(value: GridPlan) -> None
#
Set the current value of the widget from a useq-schema
GridPlan.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value
|
GridFromEdges | GridRowsColumns | GridWidthHeight
|
The |
required |
value() -> GridPlan
#
Return the current value of the widget as a useq-schema
GridPlan.
Returns:
Type | Description |
---|---|
GridFromEdges | GridRowsColumns | GridWidthHeight
|
The current GridPlan value of the widget. |
Example#
grid_plan_widget.py | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|