forked from zietzm/Helmholtz_Test_Bench
Cleaned main.py. Renamed exit_flag global.
This commit is contained in:
@@ -45,7 +45,7 @@ class ExecCSVThread(Thread):
|
||||
self.cage_dev.close()
|
||||
|
||||
# when the sequence has ended, reset buttons on the UI:
|
||||
if not g.exitFlag: # main window is open
|
||||
if not g.exit_flag: # main window is open
|
||||
self.parent.select_file_button["state"] = "normal"
|
||||
self.parent.execute_button["state"] = "normal"
|
||||
self.parent.stop_button["state"] = "disabled"
|
||||
@@ -79,7 +79,7 @@ class ExecCSVThread(Thread):
|
||||
|
||||
i = 0 # index of the current array row
|
||||
while i < len(array):
|
||||
if self.stopped or g.exitFlag:
|
||||
if self.stopped or g.exit_flag:
|
||||
# Interrupt sequence
|
||||
ui_print("Sequence interrupted, powering down channels.")
|
||||
# Channels powered down in run function
|
||||
|
||||
Reference in New Issue
Block a user