From 3215bb2733d0d4cec3b1e16a17fac398f06e44a1 Mon Sep 17 00:00:00 2001 From: Seth Date: Thu, 28 Nov 2024 21:24:06 +1300 Subject: [PATCH] added init lable to show program state --- OutGaugeInterpreter.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/OutGaugeInterpreter.py b/OutGaugeInterpreter.py index d6afc13..234e73b 100644 --- a/OutGaugeInterpreter.py +++ b/OutGaugeInterpreter.py @@ -33,6 +33,11 @@ class GameType(Enum): BEAMNG = "BEAMNG" FORZA = "FORZA" +class ProgramState(Enum): + PUSHING_DATA = 1 + WAITNG = 2 + ERROR = 3 + connectedArduino = False connectedWebSocket = False gameSelected = False @@ -119,6 +124,9 @@ loggingLocationEntry.insert(0,loggingLocationText.get()) loggingLocationEntry.pack(side="bottom") startStopButton= tkinter.Button(bottomBarFrameGui,text= "start",command= startStopButtonFunc) startStopButton.pack(side="right",fill="x") +statusTextVar = tkinter.StringVar(value="waiting...") +statusLable = tkinter.Label(bottomBarFrameGui,textvariable= statusTextVar) +statusLable.pack(anchor="w") rootFrameGui.mainloop() exit() #### exit for testing