class MyForm(QtGui.QMainWindow): def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.ui = Ui_Form() self.ui.setupUi(self) self.connect(self.ui.pushButton, QtCore.SIGNAL("clicked()"), self.lol) #self.ui.pushButton.pushEvent.connect(self.lol) #@QtCore.pyqtSlot() def lol(self): self.ui.lineEdit.setText("eeeeeeee")
def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.ui = Ui_Form() self.ui.setupUi(self) self.connect(self.ui.pushButton, QtCore.SIGNAL("clicked()"), self.lol)
def __init__(self, parent=None, *args, **kwargs): QWidget.__init__(self, parent) #self.ui = Ui_Dialog() self.ui = Ui_Form() self.ui.setupUi(self)