spacr.qt.app
QApplication bootstrap + MainWindow.
launch(argv) is the public entry point called by spacr-qt and
python -m spacr.qt.
Module Contents
-
spacr.qt.app.APPS = [('mask', 'Mask', 'Generate cellpose masks for cells, nuclei and pathogens', 'Core'),...[source]
Bases: PySide6.QtWidgets.QWidget
Left navigation column. Emits nav_selected(str key) when a tile
is clicked. Home reverts to the startup page.
-
class spacr.qt.app.MainWindow(initial_app: str | None = None)[source]
Bases: PySide6.QtWidgets.QMainWindow
Top-level window: sidebar + stacked screens + status bar.
- Parameters:
initial_app – optional app key to navigate to on show; when
omitted the window opens on the Home startup page.
-
DEMO_TARGETS[source]
-
closeEvent(event)[source]
Cancel every active AI stream + wait for its QThread to exit
BEFORE Qt starts destroying widgets. Prevents the
‘QThread: Destroyed while thread is still running / Aborted’
crash on quit.
-
spacr.qt.app.launch(argv: list[str] | None = None) → int[source]
Bootstrap QApplication and show the main window.