fixed start stop text button
This commit is contained in:
parent
8cc959504f
commit
ba50a8ce69
1 changed files with 2 additions and 2 deletions
|
|
@ -115,7 +115,7 @@ else:
|
||||||
def startStopButtonFunc():
|
def startStopButtonFunc():
|
||||||
global appState
|
global appState
|
||||||
if appState == ProgramState.WAITNG:
|
if appState == ProgramState.WAITNG:
|
||||||
startStopButton.config(text="start")
|
startStopButton.config(text="stop")
|
||||||
appState = ProgramState.PUSHING_DATA
|
appState = ProgramState.PUSHING_DATA
|
||||||
stopThread=False
|
stopThread=False
|
||||||
workThread = threading.Thread(target=runningThread)
|
workThread = threading.Thread(target=runningThread)
|
||||||
|
|
@ -123,7 +123,7 @@ def startStopButtonFunc():
|
||||||
statusTextVar.set("Running...")
|
statusTextVar.set("Running...")
|
||||||
|
|
||||||
elif appState == ProgramState.PUSHING_DATA:
|
elif appState == ProgramState.PUSHING_DATA:
|
||||||
startStopButton.config(text="stop")
|
startStopButton.config(text="start")
|
||||||
appState = ProgramState.WAITNG
|
appState = ProgramState.WAITNG
|
||||||
statusTextVar.set("Waiting...")
|
statusTextVar.set("Waiting...")
|
||||||
stopThread = True
|
stopThread = True
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue