def __init__(self,parent=None): super(QtReduceController,self).__init__(parent) self.mainWindow = parent self.setFileName('') self.model = QtReduceModel(self) self.view = QtReduceFrameView(parent) self.view.computationRequest.connect(self.computationRequestV) self.view.modified.connect(self.modifiedV) self.model.dataChanged.connect(self.dataChangedM) self.model.endComputation.connect(self.endComputationM) self.model.rowsInserted.connect(self.rowsInsertedM) self.model.rowsRemoved.connect(self.rowsRemovedM) self.model.startComputation.connect(self.startComputationM) self.updatingModel = False self.model.insertRow(0)