class StartQT4(QtGui.QMainWindow): def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.ui = Ui_MainWindow() self.ui.setupUi(self) QtCore.QObject.connect(self.ui.menu_File, QtCore.SIGNAL("clicked()"), self.file_dialog) def file_dialog(self): self.ui.textEdit.setText("aaaaaaaaa")
def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.ui = Ui_MainWindow() self.ui.setupUi(self) QtCore.QObject.connect(self.ui.menu_File, QtCore.SIGNAL("clicked()"), self.file_dialog)