Leastell / pyqtLed

LED widget for PyQT5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyQT5 Indicator LEDs

pyqtLed is a simple importable custom widget for LED-like indicators in PyQT5.

to create a new led instance, simply assign it like so: led1 = QtLed()

you can also initialize it with a color already selected by specifying in-line led1 = QtLed("green")

Change LED color at will by using <variableName>.changeColor("<color name>")

the currently available colors are as follows:

  • #f03c15 "red"
  • #1c73ff "blue"
  • #00ff37 "green"
  • LEDs will default to #a8a8a8 if no color is selected

About

LED widget for PyQT5


Languages

Language:Python 100.0%