This question already has an answer here:
- PySide : How to get the clicked QPushButton object in the QPushButton clicked slot? 4 answers
Base on the groupbox example of PySide-Example, I add a clicked slot to the pushButton
, such as:
def createPushButtonGroup(self):
...
pushButton = QtGui.QPushButton("&Normal Button")
pushButton.clicked(self.normalClick)
...
def normalClick(self):
print self.sender.pushButton.text()
But it issues an error: TypeError: native Qt signal is not callable
.