Bases: taurus.qt.qtgui.display.qpixmapwidget.QPixmapWidget
A Led
Returns the led color :return: led color :rtype: str
Returns if the led is inverted. :return: inverted mode :rtype: bool
Returns the current led pattern name :return: led pattern name :rtype: str
Returns the led status :return: led status :rtype: bool
Determines if the given color name is valid. :param color: the color :type color: str :return: True is the given color name is valid or False otherwise :rtype: bool
This property holds the led color
Access functions:
This property holds the led inverted: False means do not invert the
Access functions:
This property holds the led pattern name
Access functions:
This property holds the led status: False means OFF, True means ON
Access functions:
Overwrite the default minimum size hint (0,0) to be (16,16) :return: the minimum size hint 16,16 :rtype: PyQt4.Qt.QSize
Resets the led color
Resets the led inverted mode
Resets the led pattern to :leds/images256/led_{color}_{status}.png.
Resets the led status
Sets the led color :param status: the new color :type status: str
Sets the led inverted mode :param status: the new inverted mode :type status: bool
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 |
---|
Sets the led status :param status: the new status :type status: bool