Source code for quicknxs.views.status_bar
from qtpy.QtWidgets import QStatusBar
[docs]
class StatusBar:
"""Status bar handler class."""
def __init__(self, status_bar: QStatusBar):
"""Initialize the status message handler."""
self.status_bar = status_bar
[docs]
def show_message(self, message: str, msecs: int = 10000):
"""Show a message in the status bar for a specified duration."""
self.status_bar.showMessage(message, msecs=msecs)