I am new to PyQt and QtDesigner. I want to add an LED in my GUI. can anyone kindly suggest How can I add LED in my GUI and change its color in my application?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
I have implemented a green/red LED indicator in my application "Grid Control", please have a look at the code on Github it may give you some ideas.
I have defined two LED icons in my resource file as follows:
The icon can activated like this:
Also, by using signals, the icon can be activated based on some condition: