So Im running everything on threads and the run
and not run
works as intended but running
doesnt print, I tried calling it in
status["text"]="Working"
print("run")
process()
but that just freezes up my whole program, I also tried putting in root.after
on the end but still freezes everything up. Any way here is the snippet of the part im talking about.
def keyStart():
global run
run = True
while run == True:
status["text"]="Working"
print("run")
process()
def keyStop():
global run
run = False
if run == False:
status["text"]="Not Working"
print("not run")
buttonStart = Button(root, text="Start", command=keyStart)
buttonStart.grid(columnspan=1, column=0, row=3)
buttonStop = Button(root, text="Stop", command=keyStop)
buttonStop.grid(columnspan=1, column=1, row=3)
def process():
global run
while run == True:
print("running")