# `Q7SegDigit`

digraph inheritancecbc8546a73 { bgcolor=transparent; rankdir=UD; ratio=compress; size="8.0, 12.0"; "Q7SegDigit" [URL="#taurus.qt.qtgui.display.Q7SegDigit",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="A widget representing a single seven segment digit. The style can be"]; "QWidget" -> "Q7SegDigit" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QObject" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QObject(parent: QObject|None = None)"]; "wrapper" -> "QObject" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QPaintDevice" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QPaintDevice()"]; "simplewrapper" -> "QPaintDevice" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QWidget" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QWidget(parent: QWidget|None = None, flags: Qt.WindowFlags|Qt.WindowType = Qt.WindowFlags())"]; "QObject" -> "QWidget" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QPaintDevice" -> "QWidget" [arrowsize=0.5,style="setlinewidth(0.5)"]; "simplewrapper" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "wrapper" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "simplewrapper" -> "wrapper" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

class Q7SegDigit(parent=None, **kwargs)

  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

  Import from `taurus.qt.qtgui.display` as:

      from taurus.qt.qtgui.display import Q7SegDigit

  DftAspectRatio = 1
  DftBgBrush = <PyQt5.QtGui.QBrush object>
  DftHeight = 300
  DftLedOffBgColor = <PyQt5.QtGui.QColor object>
  DftLedOffPenColor = <PyQt5.QtGui.QColor object>
  DftLedOnBgColor = 7
  DftLedOnPenColor = <PyQt5.QtGui.QColor object>
  DftLedPenWidth = 5
  DftUseFrame = True
  DftValue = ''
  DftWidth = 300
  LedGeometriesWithFrame300x300 = (<PyQt5.QtGui.QPolygonF object>, <PyQt5.QtGui.QPolygonF object>, <PyQt5.QtGui.QPolygonF object>, <PyQt5.QtGui.QPolygonF object>, <PyQt5.QtGui.QPolygonF object>, <PyQt5.QtGui.QPolygonF object>, <PyQt5.QtGui.QPolygonF object>)
  LedGeometriesWithFrame300x400 = (<PyQt5.QtGui.QPolygonF object>, <PyQt5.QtGui.QPolygonF object>, <PyQt5.QtGui.QPolygonF object>, <PyQt5.QtGui.QPolygonF object>, <PyQt5.QtGui.QPolygonF object>, <PyQt5.QtGui.QPolygonF object>, <PyQt5.QtGui.QPolygonF object>)
  LedGeometriesWithoutFrame300x300 = (<PyQt5.QtGui.QPolygonF object>, <PyQt5.QtGui.QPolygonF object>, <PyQt5.QtGui.QPolygonF object>, <PyQt5.QtGui.QPolygonF object>, <PyQt5.QtGui.QPolygonF object>, <PyQt5.QtGui.QPolygonF object>, <PyQt5.QtGui.QPolygonF object>)
  LedGeometriesWithoutFrame300x400 = (<PyQt5.QtGui.QPolygonF object>, <PyQt5.QtGui.QPolygonF object>, <PyQt5.QtGui.QPolygonF object>, <PyQt5.QtGui.QPolygonF object>, <PyQt5.QtGui.QPolygonF object>, <PyQt5.QtGui.QPolygonF object>, <PyQt5.QtGui.QPolygonF object>)
  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:

    > - `taurus.qt.qtgui.display.Q7SegDigit.getBgBrush()`

    > - `taurus.qt.qtgui.display.Q7SegDigit.setBgBrush()`

    > - `taurus.qt.qtgui.display.Q7SegDigit.resetBgBrush()`

  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:

    > - `taurus.qt.qtgui.display.Q7SegDigit.getLedOffBgColor()`

    > - `taurus.qt.qtgui.display.Q7SegDigit.setLedOffBgColor()`

    > - `taurus.qt.qtgui.display.Q7SegDigit.resetLedOffBgColor()`

  ledOffPenColor

    This property holds the led pen color when the led is light OFF

    Access functions:

    > - `taurus.qt.qtgui.display.Q7SegDigit.getLedOffPenColor()`

    > - `taurus.qt.qtgui.display.Q7SegDigit.setLedOffPenColor()`

    > - `taurus.qt.qtgui.display.Q7SegDigit.resetLedOffPenColor()`

  ledOnBgColor

    This property holds the led background color when the led is light ON

    Access functions:

    > - `taurus.qt.qtgui.display.Q7SegDigit.getLedOnBgColor()`

    > - `taurus.qt.qtgui.display.Q7SegDigit.setLedOnBgColor()`

    > - `taurus.qt.qtgui.display.Q7SegDigit.resetLedOnBgColor()`

  ledOnPenColor

    This property holds the led pen color when the led is light ON

    Access functions:

    > - `taurus.qt.qtgui.display.Q7SegDigit.getLedOnPenColor()`

    > - `taurus.qt.qtgui.display.Q7SegDigit.setLedOnPenColor()`

    > - `taurus.qt.qtgui.display.Q7SegDigit.resetLedOnPenColor()`

  ledPenWidth

    This property holds the pen width

    Access functions:

    > - `taurus.qt.qtgui.display.Q7SegDigit.getLedPenWidth()`

    > - `taurus.qt.qtgui.display.Q7SegDigit.setLedPenWidth()`

    > - `taurus.qt.qtgui.display.Q7SegDigit.resetLedPenWidth()`

  minimumSizeHint(self) → QSize
  paintEvent(self, a0: QPaintEvent | None)
  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(self) → QSize
  useFrame

    This property holds wheater of not to draw a frame

    Access functions:

    > - `taurus.qt.qtgui.display.Q7SegDigit.getUseFrame()`

    > - `taurus.qt.qtgui.display.Q7SegDigit.setUseFrame()`

    > - `taurus.qt.qtgui.display.Q7SegDigit.resetUseFrame()`

  value

    This property holds the widget value

    Access functions:

    > - `taurus.qt.qtgui.display.Q7SegDigit.getValue()`

    > - `taurus.qt.qtgui.display.Q7SegDigit.setValue()`

    > - `taurus.qt.qtgui.display.Q7SegDigit.resetValue()`