MCPcopy
hub / github.com/PyQt5/PyQt / __init__

Method __init__

QProgressBar/ColourfulProgress.py:29–39  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

27class 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 """

Callers

nothing calls this directly

Calls 4

setColorMethod · 0.95
setFpsMethod · 0.95
setLineWidthMethod · 0.95
setRadiusMethod · 0.95

Tested by

no test coverage detected