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
+3 -1
View File
@@ -37,7 +37,9 @@ class ExecCSVThread(Thread):
def stopped(self):
return self.__stop_event.is_set()
def execute_sequence(self, array, delay, parent, controller): # runs through array containing times and desired field vectors
def execute_sequence(self, array, delay, parent, controller):
# runs through array with times and desired fields and commands test stand accordingly
# array format: [time (s), xField (T), yField (T), zField (T)]
# decimal commas
# all times in seconds