qt_ledwidget
Python PyQt5 widget to display animated LEDs
Widget that displays 3 LED's with animated on, off, blink and blink all methods.
Usage
Here is an usage example. For a complete example see
from qt_ledwidget import LedWidget
"""
LED QWidget to show progress status to users similar to networking LED's on hardware devices.
"""
# inside your PyQt5 application
led_widget = LedWidget(YourParentWidget, YourLayout,
led_size=24,
show_red=False, show_yellow=True, show_green=True)
# Let em blink
led_widget.led_blink_all()
Installation
Python
From PyPI: Get the lastest stable version of qt-ledwidget
package
using pip (preferable):
pip install qt-ledwidget
From code: Download/clone the project, go to qt_ledwidget
folder that contains setup.py then:
-
You can use the setup script and pip install.
pip install .
-
Or, you can use the setup script with Python:
python setup.py install