taurus taurus

Previous topic

taurus.qt.qtgui.display.demo

Next topic

QFallBackWidget

This Page

Q7SegDigit

Inheritance diagram of Q7SegDigit

class Q7SegDigit(parent=None, **kwargs)

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 0xb07d1b4>
DftHeight = 300
DftLedOffBgColor = <PyQt4.QtGui.QColor object at 0xb06ffb4>
DftLedOffPenColor = <PyQt4.QtGui.QColor object at 0xb06fdf4>
DftLedOnBgColor = 7
DftLedOnPenColor = <PyQt4.QtGui.QColor object at 0xb06fc34>
DftLedPenWidth = 5
DftUseFrame = True
DftValue = ''
DftWidth = 300
LedGeometriesWithFrame300x300 = (<PyQt4.QtGui.QPolygonF object at 0xb07d02c>, <PyQt4.QtGui.QPolygonF object at 0xb07d064>, <PyQt4.QtGui.QPolygonF object at 0xb07d09c>, <PyQt4.QtGui.QPolygonF object at 0xb07d144>, <PyQt4.QtGui.QPolygonF object at 0xb07d0d4>, <PyQt4.QtGui.QPolygonF object at 0xb07d10c>, <PyQt4.QtGui.QPolygonF object at 0xb07d17c>)
LedGeometriesWithFrame300x400 = (<PyQt4.QtGui.QPolygonF object at 0xb06fc6c>, <PyQt4.QtGui.QPolygonF object at 0xb06fca4>, <PyQt4.QtGui.QPolygonF object at 0xb06fcdc>, <PyQt4.QtGui.QPolygonF object at 0xb06fd84>, <PyQt4.QtGui.QPolygonF object at 0xb06fd14>, <PyQt4.QtGui.QPolygonF object at 0xb06fd4c>, <PyQt4.QtGui.QPolygonF object at 0xb06fdbc>)
LedGeometriesWithoutFrame300x300 = (<PyQt4.QtGui.QPolygonF object at 0xb07d1ec>, <PyQt4.QtGui.QPolygonF object at 0xb07d224>, <PyQt4.QtGui.QPolygonF object at 0xb07d25c>, <PyQt4.QtGui.QPolygonF object at 0xb07d304>, <PyQt4.QtGui.QPolygonF object at 0xb07d294>, <PyQt4.QtGui.QPolygonF object at 0xb07d2cc>, <PyQt4.QtGui.QPolygonF object at 0xb07d33c>)
LedGeometriesWithoutFrame300x400 = (<PyQt4.QtGui.QPolygonF object at 0xb06fe2c>, <PyQt4.QtGui.QPolygonF object at 0xb06fe64>, <PyQt4.QtGui.QPolygonF object at 0xb06fe9c>, <PyQt4.QtGui.QPolygonF object at 0xb06ff44>, <PyQt4.QtGui.QPolygonF object at 0xb06fed4>, <PyQt4.QtGui.QPolygonF object at 0xb06ff0c>, <PyQt4.QtGui.QPolygonF object at 0xb06ff7c>)
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: