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

Method mousePressEvent

Demo/ProbeWindow.py:65–69  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

63 super(Label, self).closeEvent(event)
64
65 def mousePressEvent(self, event):
66 super(Label, self).mousePressEvent(event)
67 self.ismd = True # 按下
68 # 设置鼠标样式为十字
69 self.setCursor(Qt.CrossCursor)
70
71 def mouseReleaseEvent(self, event):
72 super(Label, self).mouseReleaseEvent(event)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected