Example #1
0
File: qled.py Project: cmft/taurus
 def __init__(self, parent=None, designMode=False):
     self._ledStatus = self.DefaultLedStatus
     self._ledColor = self.DefaultLedColor
     self._ledPatternName = self.DefaultLedPattern
     self._ledInverted = self.DefaultLedInverted
     self._ledName = self.toLedName()
     self._timer = None
     QPixmapWidget.__init__(self, parent)
     self._refresh()
Example #2
0
 def __init__(self, parent=None, designMode=False):
     self._ledStatus = self.DefaultLedStatus
     self._ledColor = self.DefaultLedColor
     self._ledPatternName = self.DefaultLedPattern
     self._ledInverted = self.DefaultLedInverted
     self._ledName = self.toLedName()
     self._timer = None
     QPixmapWidget.__init__(self, parent)
     self._refresh()
Example #3
0
File: qled.py Project: cmft/taurus
 def sizeHint(self):
     if self.layout() is None:
         return Qt.QSize(24, 24)
     return QPixmapWidget.sizeHint(self)
Example #4
0
 def sizeHint(self):
     if self.layout() is None:
         return Qt.QSize(24, 24)
     return QPixmapWidget.sizeHint(self)