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

Method mouseReleaseEvent

QPainter/Draw.py:67–69  ·  view source on GitHub ↗
(self, ev)

Source from the content-addressed store, hash-verified

65 if Qt.LeftButton & ev.button():
66 self.drawsig.emit(True)
67 def mouseReleaseEvent(self, ev):
68 if Qt.LeftButton & ev.button():
69 self.drawsig.emit(False)
70
71 def paintEvent(self, ev):
72 if len(self.points) <= 0 and len(self.current_points) <= 0 : return

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected