(self, *args, **kwargs)
| 27 | class ColourfulProgress(QProgressBar): |
| 28 | |
| 29 | def __init__(self, *args, **kwargs): |
| 30 | self._color = kwargs.pop('color', QColor(43, 194, 83)) |
| 31 | self._fps = kwargs.pop('fps', 60) |
| 32 | self._lineWidth = kwargs.pop('lineWidth', 50) # 线条宽度 |
| 33 | self._radius = kwargs.pop('radius', None) # None为自动计算圆角 |
| 34 | self._animation = None |
| 35 | super(ColourfulProgress, self).__init__(*args, **kwargs) |
| 36 | self.setColor(self._color) |
| 37 | self.setFps(self._fps) |
| 38 | self.setLineWidth(self._lineWidth) |
| 39 | self.setRadius(self._radius) |
| 40 | |
| 41 | def setColor(self, color): |
| 42 | """ |
nothing calls this directly
no test coverage detected