23 lines
590 B
Python
23 lines
590 B
Python
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("%s - RavenLog" % title)
|
|
else:
|
|
RavenUI.window.setWindowTitle("RavenLog")
|
|
|
|
@staticmethod
|
|
def update_status_bar(text: str):
|
|
if not RavenUI.window:
|
|
return
|
|
RavenUI.window.status_bar.showMessage(text)
|