Cleaned main.py. Renamed exit_flag global.

This commit is contained in:
2021-10-22 20:56:16 +02:00
parent f2c33f69fa
commit 5a3625021e
5 changed files with 56 additions and 52 deletions
+2 -2
View File
@@ -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