added init lable to show program state

This commit is contained in:
Seth Samuel 2024-11-28 21:24:06 +13:00
parent 2dd1612ec8
commit 3215bb2733

View file

@ -33,6 +33,11 @@ class GameType(Enum):
BEAMNG = "BEAMNG" BEAMNG = "BEAMNG"
FORZA = "FORZA" FORZA = "FORZA"
class ProgramState(Enum):
PUSHING_DATA = 1
WAITNG = 2
ERROR = 3
connectedArduino = False connectedArduino = False
connectedWebSocket = False connectedWebSocket = False
gameSelected = False gameSelected = False
@ -119,6 +124,9 @@ loggingLocationEntry.insert(0,loggingLocationText.get())
loggingLocationEntry.pack(side="bottom") loggingLocationEntry.pack(side="bottom")
startStopButton= tkinter.Button(bottomBarFrameGui,text= "start",command= startStopButtonFunc) startStopButton= tkinter.Button(bottomBarFrameGui,text= "start",command= startStopButtonFunc)
startStopButton.pack(side="right",fill="x") startStopButton.pack(side="right",fill="x")
statusTextVar = tkinter.StringVar(value="waiting...")
statusLable = tkinter.Label(bottomBarFrameGui,textvariable= statusTextVar)
statusLable.pack(anchor="w")
rootFrameGui.mainloop() rootFrameGui.mainloop()
exit() #### exit for testing exit() #### exit for testing