added init lable to show program state
This commit is contained in:
parent
2dd1612ec8
commit
3215bb2733
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue