Skip to content

Spinner Label

app.ui.qt.widgets.feedback.spinner_label

View source code

Module for spinner label; implements the Qt presentation components.

See Also

Layer: Presentation. Context: Implements the qt presentation components at this architectural boundary.

InlineSpinnerLabel

Bases: QLabel

Small animated inline spinner label for lightweight loading states.

PARAMETER DESCRIPTION
text

Initial text displayed by the widget.

TYPE: str DEFAULT: 'Loading'

parent

Optional Qt parent object.

TYPE: QWidget | None DEFAULT: None

interval_ms

Animation interval in milliseconds.

TYPE: int DEFAULT: 100

__init__(text: str = 'Loading', parent: QWidget | None = None, interval_ms: int = 100) -> None

start(text: str | None = None) -> None

Show the label and start its frame timer.

PARAMETER DESCRIPTION
text

Optional replacement status text; when omitted, keep the current text.

TYPE: str | None DEFAULT: None

stop() -> None

Stop the frame timer and hide the label.