ShuttersWidget
ShuttersWidget
#
Bases: QWidget
A Widget to control shutters and Micro-Manager autoshutter.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
shutter_device
|
str
|
The shutter device Label. |
required |
autoshutter
|
bool
|
If True, a checkbox controlling the Micro-Manager autoshutter is added to the layout. |
True
|
parent
|
QWidget | None
|
Optional parent widget. By default, None. |
None
|
mmcore
|
CMMCorePlus | None
|
Optional |
None
|
button_text_closed: str
property
writable
#
Set the button text for when the shutter is closed.
Default = ''
button_text_open: str
property
writable
#
Set the button text for when the shutter is open.
Default = ''
icon_closed: str
property
writable
#
Set the icon of the QPushButton when the shutter is closed.
The icon_closed.setter icon string should be any key recognizable as a superqt fonticon (e.g. mdi6.abacus). Default = MDI6.hexagon_slice_6 (https://github.com/templarian/MaterialDesign). Note that MDI6 is installed by default, you must install other fonts if you want to use them.
icon_color_closed: COLOR_TYPE
property
writable
#
Set the button icon color for when the shutter is closed.
Default = 'magenta'
COLOR_TYPE = Union[QColor, int, str, Qt.GlobalColor, tuple[int, int, int, int], tuple[int, int, int]]
icon_color_open: COLOR_TYPE
property
writable
#
Set the button icon color for when the shutter is open.
Default = (0, 255, 0)
COLOR_TYPE = Union[QColor, int, str, Qt.GlobalColor, tuple[int, int, int, int], tuple[int, int, int]]
icon_open: str
property
writable
#
Set the icon of the QPushButton when the shutter is open.
The icon_open.setter icon string should be any key recognizable as a superqt fonticon (e.g. mdi6.abacus). Default = MDI6.hexagon_outline (https://github.com/templarian/MaterialDesign). Note that MDI6 is installed by default, you must install other fonts if you want to use them.
icon_size: int
property
writable
#
Set the button icon size.
Default = 25
Example#
shutters_widget.py | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|