forked from zietzm/Helmholtz_Test_Bench
fixed issue
Status Display update was attempted after window close, resulting in error messages from connected device
This commit is contained in:
+2
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user