Mar-19-2020, 12:20 AM
I don't really know how to read PyQt5, but what it sounds like you need is a simple "if" statement. Something like this:
[python]
if working == True:
##put your color change to red and process here, then
##working = False
else:
#put your code for a green button and it waiting here.
#when it is clicked, change working to True
[python]
The specifics are up to you, but it's an
[python]
if working == True:
##put your color change to red and process here, then
##working = False
else:
#put your code for a green button and it waiting here.
#when it is clicked, change working to True
[python]
The specifics are up to you, but it's an
if
you are looking for.