I recently encountered this error after attempting to run my python script. In short, I simply don't understand how I've fed three arguments. I've included what I considered to be the most relevant snippets of code. Help is very appreciated. Thank you.
Traceback (most recent call last): File "DESeq_rpkm_gui.py", line 946, in disp = Ui_MainWindow() File "DESeq_rpkm_gui.py", line 21, in init self.setupUi(self,QMainWindow) TypeError: setupUi() takes exactly 2 arguments (3 given)
class Ui_MainWindow(QMainWindow):
def __init__(self,parent=None):
QMainWindow.__init__(self,parent)
self.setupUi(self,QMainWindow)
def setupUi(self,MainWindow):
and
if __name__=='__main__':
app = QApplication(sys.argv)
disp = Ui_MainWindow()
disp.show()
sys.exit(disp.exec_())