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()
def sizeHint(self): if self.layout() is None: return Qt.QSize(24, 24) return QPixmapWidget.sizeHint(self)