Q7SegDigit

Inheritance diagram of Q7SegDigit

class Q7SegDigit(parent=None, **kwargs)[source]

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>
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 0xae8d3f7c>, <PyQt4.QtGui.QPolygonF object at 0xae8d3fb4>, <PyQt4.QtGui.QPolygonF object at 0xae81c02c>, <PyQt4.QtGui.QPolygonF object at 0xae81c0d4>, <PyQt4.QtGui.QPolygonF object at 0xae81c064>, <PyQt4.QtGui.QPolygonF object at 0xae81c09c>, <PyQt4.QtGui.QPolygonF object at 0xae81c10c>)
LedGeometriesWithFrame300x400 = (<PyQt4.QtGui.QPolygonF object at 0xae8d3bfc>, <PyQt4.QtGui.QPolygonF object at 0xae8d3c34>, <PyQt4.QtGui.QPolygonF object at 0xae8d3c6c>, <PyQt4.QtGui.QPolygonF object at 0xae8d3d14>, <PyQt4.QtGui.QPolygonF object at 0xae8d3ca4>, <PyQt4.QtGui.QPolygonF object at 0xae8d3cdc>, <PyQt4.QtGui.QPolygonF object at 0xae8d3d4c>)
LedGeometriesWithoutFrame300x300 = (<PyQt4.QtGui.QPolygonF object at 0xae81c17c>, <PyQt4.QtGui.QPolygonF object at 0xae81c1b4>, <PyQt4.QtGui.QPolygonF object at 0xae81c1ec>, <PyQt4.QtGui.QPolygonF object at 0xae81c294>, <PyQt4.QtGui.QPolygonF object at 0xae81c224>, <PyQt4.QtGui.QPolygonF object at 0xae81c25c>, <PyQt4.QtGui.QPolygonF object at 0xae81c2cc>)
LedGeometriesWithoutFrame300x400 = (<PyQt4.QtGui.QPolygonF object at 0xae8d3dbc>, <PyQt4.QtGui.QPolygonF object at 0xae8d3df4>, <PyQt4.QtGui.QPolygonF object at 0xae8d3e2c>, <PyQt4.QtGui.QPolygonF object at 0xae8d3ed4>, <PyQt4.QtGui.QPolygonF object at 0xae8d3e64>, <PyQt4.QtGui.QPolygonF object at 0xae8d3e9c>, <PyQt4.QtGui.QPolygonF object at 0xae8d3f0c>)
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()[source]
getBgBrush()[source]
getLedOffBgColor()[source]
getLedOffPenColor()[source]
getLedOnBgColor()[source]
getLedOnPenColor()[source]
getLedPenWidth()[source]
getUseFrame()[source]
getValue()[source]
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()[source]
paintEvent(evt)[source]
resetAspectRatio()[source]
resetBgBrush()[source]
resetLedOffBgColor()[source]
resetLedOffPenColor()[source]
resetLedOnBgColor()[source]
resetLedOnPenColor()[source]
resetLedPenWidth()[source]
resetUseFrame()[source]
resetValue()[source]
setAspectRatio(apectRatio)[source]
setBgBrush(bgBrush)[source]
setLedOffBgColor(bgColor)[source]
setLedOffPenColor(penColor)[source]
setLedOnBgColor(bgColor)[source]
setLedOnPenColor(penColor)[source]
setLedPenWidth(w)[source]
setUseFrame(useFrame)[source]
setValue(n)[source]
sizeHint()[source]
useFrame

This property holds wheater of not to draw a frame

Access functions:

value

This property holds the widget value

Access functions: