radioviz.views.loading_splash

Loading splash screen module.

Provides the LoadingSplash class, a custom splash screen widget that displays a background pixmap, status text and a progress bar during application startup.

Classes

LoadingSplash(pixmap)

Custom splash screen widget.

class radioviz.views.loading_splash.LoadingSplash(pixmap: QPixmap)[source]

Bases: QSplashScreen

Custom splash screen widget.

Extends PySide6.QtWidgets.QSplashScreen to include a transparent container with a status label and a progress bar, allowing dynamic updates of startup status.

Initialize the loading splash screen.

Creates the splash screen with the given background PySide6.QtGui.QPixmap and sets up the status label and progress bar.

Parameters:

pixmap (PySide6.QtGui.QPixmap) – Background image for the splash screen.

set_status(text: str, current: int, total: int) None[source]

Update the status text and progress bar.

Sets the status label to the provided text and updates the progress bar based on the current and total steps. If total is less than or equal to zero, the progress bar enters an indeterminate mode.

Parameters:
  • text (str) – Status message to display.

  • current (int) – Current progress step.

  • total (int) – Total number of steps; if <= 0, an indeterminate progress bar is shown.

Returns:

None

Return type:

None

show() None[source]

Center the splash screen on the screen containing the mouse cursor and display it.

The method determines the screen under the current cursor position; if none is found, it falls back to the primary screen. It then moves the splash window so that it is centered on that screen before invoking the base class show method.