【发布时间】:2013-12-02 03:18:45
【问题描述】:
我是 PySide 的新手。我想在其单击的插槽中获取 QPushButton obj(例如使用它来获取其文本)。
button = QtGui.QPushButton("start go")
button.clicked.connect(self.buttonClick)
def buttonClick(self):
... # How can I get the button object?
# print button.text() how to get the text : 'start go' ?
谢谢!
【问题讨论】:
标签: qt pyqt pyside qpushbutton