spacr.qt.widgets.empty_state

EmptyState — reusable big “nothing here yet” panel with icon, title, subtitle, and an optional call-to-action button.

Used on screens whose primary content requires the user to first pick a source folder / open a database (annotate, make-masks) — instead of showing an empty grid or blank canvas we render this centered.

Module Contents

class spacr.qt.widgets.empty_state.EmptyState(title: str = '', subtitle: str = '', icon: PySide6.QtGui.QIcon | None = None, cta_label: str = '', on_action: Callable[[], None] | None = None, parent: PySide6.QtWidgets.QWidget | None = None)[source]

Bases: PySide6.QtWidgets.QWidget

Centered vertical stack: icon → title → subtitle → CTA button.

Any element can be omitted by passing an empty string / None.

action_triggered[source]
property cta_button: PySide6.QtWidgets.QPushButton | None[source]

The primary CTA button, or None when no cta_label was set.