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

Method onPressed

QPushButton/SignalsExample.py:54–56  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52 '按钮{0}被点击'.format(self.sender().objectName()))
53
54 def onPressed(self):
55 self.resultView.appendPlainText(
56 '按钮{0}被按下'.format(self.sender().objectName()))
57
58 def onReleased(self):
59 self.resultView.appendPlainText(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected