fixed issue

Status Display update was attempted after window close, resulting in error messages from connected device
This commit is contained in:
Martin Zietz
2021-02-15 13:11:25 +01:00
parent 24281ad9f3
commit 20f06fa837
2 changed files with 5 additions and 4 deletions
+2 -3
View File
@@ -961,9 +961,8 @@ class StatusDisplay(Frame):
self.update_labels()
def continuous_label_update(self, controller, interval): # update display values in regular intervals (ms)
self.update_labels()
if g.app is not None: # app ist still running
# ToDo (optional): prevent call after program close
if not g.exitFlag: # app ist still running
self.update_labels()
controller.after(interval, lambda: self.continuous_label_update(controller, interval))
def update_labels(self): # update all values in the status display