Skip to content

CoreLogWidget

CoreLogWidget widget

This image generated from example code below.

CoreLogWidget #

Bases: QWidget

High-performance log console with pause, follow-tail, clear, and initial load.

clear() -> None #

Clear the log view.

closeEvent(event: QCloseEvent | None) -> None #

Clean up thread on close.

Example#

core_log_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 CoreLogWidget

app = QApplication([])
core = CMMCorePlus()

wdg = CoreLogWidget(mmcore=core)
wdg.clear()
wdg.show()

core.loadSystemConfiguration()
app.exec()