全腦屁中的一類方法這裏甚至不知道我問正確的問題。如何添加/更改類中存在一類的方法?添加類
我建立一個QT GUI中QtDesigner設計。我的Python程序進口,使子類的GUI文件類的新類。我想將方法更改爲該類中的按鈕。
所以基本上我下面,我想一個方法添加到「A按鈕」。
qtDesignerFile.py
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
self.aButton = QtGui.QPushButton()
myPythonFile.py
import qtDesignerFile
class slidingAppView(QMainWindow,slidingGuiUi.Ui_MainWindow):
def __init__(self,parent=None):
super(slidingAppView,self).__init__(parent)