MCPcopy Index your code
hub / github.com/PyQt5/PyQt / paintEvent

Method paintEvent

QPushButton/BottomLineProgress.py:64–74  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

62 self.stop()
63
64 def paintEvent(self, event):
65 super(PushButtonLine, self).paintEvent(event)
66 if not self._timer.isActive():
67 return
68 # 画进度
69 painter = QPainter(self)
70 pen = QPen(self.lineColor)
71 pen.setWidth(4)
72 painter.setPen(pen)
73 painter.drawLine(0, self.height(), self.width()
74 * self._percent, self.height())
75
76 def start(self):
77 if hasattr(self, "loadingThread"):

Callers

nothing calls this directly

Calls 3

setPenMethod · 0.80
heightMethod · 0.45
widthMethod · 0.45

Tested by

no test coverage detected