Python Forum
PyQt5 Help - Absolute Beginner!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PyQt5 Help - Absolute Beginner!
#2
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 if you are looking for.
Reply


Messages In This Thread
PyQt5 Help - Absolute Beginner! - by mnash48 - Mar-18-2020, 10:02 PM
RE: PyQt5 Help - Absolute Beginner! - by michael1789 - Mar-19-2020, 12:20 AM
RE: PyQt5 Help - Absolute Beginner! - by deanhystad - Mar-20-2020, 11:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Huge code problems (buttons(PyQt5),PyQt5 Threads, Windows etc) ZenWoR 0 2,874 Apr-06-2019, 11:15 PM
Last Post: ZenWoR

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020