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

Method mousePressEvent

Demo/Lib/FramelessWindow.py:122–126  ·  view source on GitHub ↗

鼠标点击事件

(self, event)

Source from the content-addressed store, hash-verified

120 self.showMaximized()
121
122 def mousePressEvent(self, event):
123 """鼠标点击事件"""
124 if event.button() == Qt.LeftButton:
125 self.mPos = event.pos()
126 event.accept()
127
128 def mouseReleaseEvent(self, event):
129 '''鼠标弹起事件'''

Callers 1

mousePressEventMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected