StatusIndicator#
- class StatusIndicator(main_window)[source]#
Bases:
objectMethods
Drop the persistent message and clear the label.
Connect all BackgroundTaskManager signals to StatusIndicator and TaskMonitorDialog.
StatusIndicator.hide(*args, **kwargs)Hide the center progress bar.
StatusIndicator.instance()StatusIndicator.show(*args, **kwargs)StatusIndicator.show_progress(title, total)Show the center progress bar for a foreground operation.
StatusIndicator.show_task(prefix[, path, ...])Show a status message, optionally with a path and warning color.
StatusIndicator.update_progress(current, total)Update the center progress bar.
StatusIndicator.update_status([interaction, ...])- connect_signals()[source]#
Connect all BackgroundTaskManager signals to StatusIndicator and TaskMonitorDialog.
- show_task(prefix, path=None, warning=False, persist=False)[source]#
Show a status message, optionally with a path and warning color.
- Parameters:
- prefixstr
Message text, placed before
path.- pathstr, optional
Path shown with middle elision and a full-text tooltip.
- warningbool, optional
Use the warning color. Defaults to False.
- persistbool, optional
Keep the message until cleared and restore it after transient messages. Defaults to False.