from raven.i18n import _ class RavenUI(): # no type hint because of circular dependencies window = None @staticmethod def update_ui(): RavenUI.window.update() @staticmethod def update_window_title(title: str): if not RavenUI.window: return if len(title) > 0: RavenUI.window.setWindowTitle(_("{0} - RavenLog").format(title)) else: RavenUI.window.setWindowTitle(_("RavenLog")) @staticmethod def update_status_bar(text: str): if not RavenUI.window: return RavenUI.window.status_bar.showMessage(text)