(self, *args, color=None, clockwise=True, **kwargs)
| 26 | Delta = 36 |
| 27 | |
| 28 | def __init__(self, *args, color=None, clockwise=True, **kwargs): |
| 29 | super(CircleProgressBar, self).__init__(*args, **kwargs) |
| 30 | self.angle = 0 |
| 31 | self.Clockwise = clockwise |
| 32 | if color: |
| 33 | self.Color = color |
| 34 | self._timer = QTimer(self, timeout=self.update) |
| 35 | self._timer.start(100) |
| 36 | |
| 37 | def paintEvent(self, event): |
| 38 | super(CircleProgressBar, self).paintEvent(event) |