def METHOD_NAME(self, QPaintEvent):
    painter = QPainter(self)
    painter.fillRect(self.rect(), Qt.transparent)
    painter.setRenderHint(QPainter.Antialiasing, True)
    if self._currentCounter >= self._numberOfLines:
        self._currentCounter = 0
    painter.setPen(Qt.NoPen)
    for i in range(0, self._numberOfLines):
        painter.save()
        painter.translate(self._innerRadius + self._lineLength, self._innerRadius + self._lineLength)
        rotateAngle = float(360 * i) / float(self._numberOfLines)
        painter.rotate(rotateAngle)
        painter.translate(self._innerRadius, 0)
        distance = self.lineCountDistanceFromPrimary(i, self._currentCounter, self._numberOfLines)
        color = self.currentLineColor(distance, self._numberOfLines, self._trailFadePercentage,
                                      self._minimumTrailOpacity, self._color)
        painter.setBrush(color)
        painter.drawRoundedRect(QRect(0, int(-self._lineWidth / 2), self._lineLength, self._lineWidth), self._roundness,
                                self._roundness, Qt.RelativeSize)
        painter.restore()