Skip to content

DefaultCameraExposureWidget

DefaultCameraExposureWidget widget

This image generated from example code below.

DefaultCameraExposureWidget #

Bases: ExposureWidget

A Widget to get/set exposure on the default camera.

Parameters:

Name Type Description Default
parent QWidget | None
Optional parent widget. By default, None.
None
mmcore CMMCorePlus | None

Optional pymmcore_plus.CMMCorePlus micromanager core. By default, None. If not specified, the widget will use the active (or create a new) CMMCorePlus.instance.

None

setCamera(camera: str | None = None, force: bool = False) -> None #

Set which camera this widget tracks.

Using this on the DefaultCameraExposureWidgetwidget may cause unexpected behavior, instead try to use an ExposureWidget.

Parameters:

Name Type Description Default
camera str

The camera device label. By default, None. If not specified, the widget will use the current Camera device.

None
force bool

Whether to force a change away from tracking the default camera.

False

Example#

default_camera_exposure_widget.py
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
from pymmcore_plus import CMMCorePlus
from qtpy.QtWidgets import QApplication

from pymmcore_widgets import DefaultCameraExposureWidget

app = QApplication([])

mmc = CMMCorePlus().instance()
mmc.loadSystemConfiguration()

exp_wdg = DefaultCameraExposureWidget()
exp_wdg.show()

app.exec_()