Files
krowlog/ravenui.py
Andreas Huber 5b95c328d5 open files after the window has been opened
this way we can update the window title
2021-10-30 09:55:57 +02:00

17 lines
431 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")