QLed

- class QLed(parent=None, designMode=False)[source]
A Led drawn with png files
Import from
taurus.qt.qtgui.displayas:from taurus.qt.qtgui.display import QLed
- DefaultLedPattern = 'leds_images256:led_{color}_{status}.png'
- getLedPatternName()[source]
Returns the current led pattern name :return: led pattern name :rtype: str
- ledColor
This property holds the led color
Access functions:
QLed.getLedColor()QLed.resetLedColor()
- ledPattern
This property holds the led pattern name
Access functions:
- setLedPatternName(name)[source]
Sets the led pattern name. Should be a string containing a path to valid images. The string can contain the keywords:
{status} - transformed to ‘on’ of ‘off’ according to the status
{color} - transformed to the current led color
Example: :leds/images256/led_{color}_{status}.png will be transformed to :leds/images256/led_red_on.png when the led status is True and the led color is red.
- Parameters:
name (str) – new pattern