MCPcopy Create free account
hub / github.com/PyQt5/PyQt / progressStep

Method progressStep

QProgressBar/Lib/QStyleAnimation.py:98–103  ·  view source on GitHub ↗
(self, width)

Source from the content-addressed store, hash-verified

96 return self.currentTime() / (1000.0 / self._speed)
97
98 def progressStep(self, width):
99 step = self.animationStep()
100 progress = (step * width / self._speed) % width
101 if ((step * width / self._speed) % (2 * width)) >= width:
102 progress = width - progress
103 return progress
104
105 def speed(self):
106 return self._speed

Callers

nothing calls this directly

Calls 1

animationStepMethod · 0.95

Tested by

no test coverage detected