Bases: PyQt4.QtGui.QWidget
A 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 at 0x7fda02c56398>
-
DftHeight = 300
-
DftLedOffBgColor = <PyQt4.QtGui.QColor object at 0x7fda02c56320>
-
DftLedOffPenColor = <PyQt4.QtGui.QColor object at 0x7fda02c562a8>
-
DftLedOnBgColor = 7
-
DftLedOnPenColor = <PyQt4.QtGui.QColor object at 0x7fda02c56230>
-
DftLedPenWidth = 5
-
DftUseFrame = True
-
DftValue = ''
-
DftWidth = 300
-
LedGeometriesWithFrame300x300 = (<PyQt4.QtGui.QPolygonF object at 0x7fda02c56b18>, <PyQt4.QtGui.QPolygonF object at 0x7fda02c56b90>, <PyQt4.QtGui.QPolygonF object at 0x7fda02c56c08>, <PyQt4.QtGui.QPolygonF object at 0x7fda02c56d70>, <PyQt4.QtGui.QPolygonF object at 0x7fda02c56c80>, <PyQt4.QtGui.QPolygonF object at 0x7fda02c56cf8>, <PyQt4.QtGui.QPolygonF object at 0x7fda02c56de8>)
-
LedGeometriesWithFrame300x400 = (<PyQt4.QtGui.QPolygonF object at 0x7fda02c56488>, <PyQt4.QtGui.QPolygonF object at 0x7fda02c56500>, <PyQt4.QtGui.QPolygonF object at 0x7fda02c56578>, <PyQt4.QtGui.QPolygonF object at 0x7fda02c566e0>, <PyQt4.QtGui.QPolygonF object at 0x7fda02c565f0>, <PyQt4.QtGui.QPolygonF object at 0x7fda02c56668>, <PyQt4.QtGui.QPolygonF object at 0x7fda02c56758>)
-
LedGeometriesWithoutFrame300x300 = (<PyQt4.QtGui.QPolygonF object at 0x7fda02c56e60>, <PyQt4.QtGui.QPolygonF object at 0x7fda02c56ed8>, <PyQt4.QtGui.QPolygonF object at 0x7fda02c56f50>, <PyQt4.QtGui.QPolygonF object at 0x7fda02c58140>, <PyQt4.QtGui.QPolygonF object at 0x7fda02c58050>, <PyQt4.QtGui.QPolygonF object at 0x7fda02c580c8>, <PyQt4.QtGui.QPolygonF object at 0x7fda02c581b8>)
-
LedGeometriesWithoutFrame300x400 = (<PyQt4.QtGui.QPolygonF object at 0x7fda02c567d0>, <PyQt4.QtGui.QPolygonF object at 0x7fda02c56848>, <PyQt4.QtGui.QPolygonF object at 0x7fda02c568c0>, <PyQt4.QtGui.QPolygonF object at 0x7fda02c56a28>, <PyQt4.QtGui.QPolygonF object at 0x7fda02c56938>, <PyQt4.QtGui.QPolygonF object at 0x7fda02c569b0>, <PyQt4.QtGui.QPolygonF object at 0x7fda02c56aa0>)
-
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:
-
getAspectRatio()
-
getBgBrush()
-
getLedOffBgColor()
-
getLedOffPenColor()
-
getLedOnBgColor()
-
getLedOnPenColor()
-
getLedPenWidth()
-
getUseFrame()
-
getValue()
-
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:
-
minimumSizeHint()
-
paintEvent(evt)
-
resetAspectRatio()
-
resetBgBrush()
-
resetLedOffBgColor()
-
resetLedOffPenColor()
-
resetLedOnBgColor()
-
resetLedOnPenColor()
-
resetLedPenWidth()
-
resetUseFrame()
-
resetValue()
-
setAspectRatio(apectRatio)
-
setBgBrush(bgBrush)
-
setLedOffBgColor(bgColor)
-
setLedOffPenColor(penColor)
-
setLedOnBgColor(bgColor)
-
setLedOnPenColor(penColor)
-
setLedPenWidth(w)
-
setUseFrame(useFrame)
-
setValue(n)
-
sizeHint()
-
useFrame
This property holds wheater of not to draw a frame
Access functions:
-
value
This property holds the widget value
Access functions: