|
@@ -329,8 +329,11 @@ while not pyray.window_should_close():
|
|
|
modes_time = time.time()
|
|
|
modes_data = mc.get("MODES")
|
|
|
pyray.set_window_title("RAY-DMX "+str(modes_data))
|
|
|
- if "RESTART" in str(modes_data) or "PRO" in str(modes_data) or "EASY" in str(modes_data):
|
|
|
- pyray.close_window()
|
|
|
+ for k in ["RESTART","PRO","EASY","EXIT"]:
|
|
|
+ if k in str(modes_data):
|
|
|
+ pyray.close_window()
|
|
|
+ exit()
|
|
|
+
|
|
|
except Exception as e:# KeyInterupt
|
|
|
print("err",e)
|
|
|
import traceback
|