PropertyWidget¶
Example¶
API¶
Bases: QWidget
Widget to display and control a single device property.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
device_label
|
str
|
Device label. |
required |
prop_name
|
str
|
Property name. |
required |
parent
|
QWidget | None
|
Optional parent widget. |
None
|
mmcore
|
CMMCorePlus | None
|
Optional core instance. If not provided, uses the global instance. |
None
|
connect_core
|
bool
|
If True, widget changes update the core and vice versa. |
True
|
Referenced by:
valueChanged
¶
valueChanged = Signal(object)
Emitted with the new value when the property value changes.
inner_widget
property
¶
Return the inner value widget (spinbox, slider, combobox, etc).
refresh
¶
Update the value of the widget from mmcore.
(If all goes well this shouldn't be necessary, but if a propertyChanged event is missed, this can be used).

