Skip to content

ExposureWidget

ExposureWidget widget

This image generated from example code below.

ExposureWidget #

Bases: QWidget

A Widget to get/set exposure on a camera.

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
parent QWidget | None

Optional parent widget. By default, None.

None
mmcore CMMCorePlus | None

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

None

Examples:

Combining ExposureWidget with other widgets

see ImagePreview

setCamera(camera: str | None = None) -> None #

Set which camera this widget tracks.

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

Example#

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 ExposureWidget

app = QApplication([])

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

exp_wdg = ExposureWidget()
exp_wdg.show()

app.exec_()