Q7SegDigit¶
-
class
Q7SegDigit(parent=None, **kwargs)[source]¶ Bases:
PyQt4.QtGui.QWidgetA widget representing a single seven segment digit. The style can be configured through the widget properties. For example, a typical LCD would have the following style:
- bgColor 170, 170, 127
- ledOnPenColor 30,30,30
- ledOnBgColor 0,0,0
- ledOffPenColor 160, 160, 120
- ledOffbgColor 150, 150, 112
-
DftAspectRatio= 1¶
-
DftBgBrush= <PyQt4.QtGui.QBrush object>¶
-
DftHeight= 300¶
-
DftLedOffBgColor= <PyQt4.QtGui.QColor object>¶
-
DftLedOffPenColor= <PyQt4.QtGui.QColor object>¶
-
DftLedOnBgColor= 7¶
-
DftLedOnPenColor= <PyQt4.QtGui.QColor object>¶
-
DftLedPenWidth= 5¶
-
DftUseFrame= True¶
-
DftValue= ''¶
-
DftWidth= 300¶
-
LedGeometriesWithFrame300x300= (<PyQt4.QtGui.QPolygonF object at 0x7fd74649f758>, <PyQt4.QtGui.QPolygonF object at 0x7fd74649f7d0>, <PyQt4.QtGui.QPolygonF object at 0x7fd74649f848>, <PyQt4.QtGui.QPolygonF object at 0x7fd74649f9b0>, <PyQt4.QtGui.QPolygonF object at 0x7fd74649f8c0>, <PyQt4.QtGui.QPolygonF object at 0x7fd74649f938>, <PyQt4.QtGui.QPolygonF object at 0x7fd74649fa28>)¶
-
LedGeometriesWithFrame300x400= (<PyQt4.QtGui.QPolygonF object at 0x7fd74649f0c8>, <PyQt4.QtGui.QPolygonF object at 0x7fd74649f140>, <PyQt4.QtGui.QPolygonF object at 0x7fd74649f1b8>, <PyQt4.QtGui.QPolygonF object at 0x7fd74649f320>, <PyQt4.QtGui.QPolygonF object at 0x7fd74649f230>, <PyQt4.QtGui.QPolygonF object at 0x7fd74649f2a8>, <PyQt4.QtGui.QPolygonF object at 0x7fd74649f398>)¶
-
LedGeometriesWithoutFrame300x300= (<PyQt4.QtGui.QPolygonF object at 0x7fd74649faa0>, <PyQt4.QtGui.QPolygonF object at 0x7fd74649fb18>, <PyQt4.QtGui.QPolygonF object at 0x7fd74649fb90>, <PyQt4.QtGui.QPolygonF object at 0x7fd74649fcf8>, <PyQt4.QtGui.QPolygonF object at 0x7fd74649fc08>, <PyQt4.QtGui.QPolygonF object at 0x7fd74649fc80>, <PyQt4.QtGui.QPolygonF object at 0x7fd74649fd70>)¶
-
LedGeometriesWithoutFrame300x400= (<PyQt4.QtGui.QPolygonF object at 0x7fd74649f410>, <PyQt4.QtGui.QPolygonF object at 0x7fd74649f488>, <PyQt4.QtGui.QPolygonF object at 0x7fd74649f500>, <PyQt4.QtGui.QPolygonF object at 0x7fd74649f668>, <PyQt4.QtGui.QPolygonF object at 0x7fd74649f578>, <PyQt4.QtGui.QPolygonF object at 0x7fd74649f5f0>, <PyQt4.QtGui.QPolygonF object at 0x7fd74649f6e0>)¶
-
Leds= ((1, 1, 1, 0, 1, 1, 1), (0, 0, 1, 0, 0, 1, 0), (1, 0, 1, 1, 1, 0, 1), (1, 0, 1, 1, 0, 1, 1), (0, 1, 1, 1, 0, 1, 0), (1, 1, 0, 1, 0, 1, 1), (1, 1, 0, 1, 1, 1, 1), (1, 0, 1, 0, 0, 1, 0), (1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 0, 1, 0), (0, 0, 0, 0, 0, 0, 0), (0, 0, 0, 1, 0, 0, 0), (1, 0, 1, 1, 1, 1, 1), (0, 0, 0, 1, 1, 1, 0))¶
-
bgBrush¶ This property holds the background brush
Access functions:
-
ledOffBgColor¶ This property holds the led background color when the led is light OFF
Access functions:
-
ledOffPenColor¶ This property holds the led pen color when the led is light OFF
Access functions:
-
ledOnBgColor¶ This property holds the led background color when the led is light ON
Access functions:
-
ledOnPenColor¶ This property holds the led pen color when the led is light ON
Access functions:
-
ledPenWidth¶ This property holds the pen width
Access functions:
-
useFrame¶ This property holds wheater of not to draw a frame
Access functions:
-
value¶ This property holds the widget value
Access functions: