self.trainPreproBtn.clicked.connect(self.connectionFunction) @pyqtSlot() def connectionFunction(self): self.firstFunction() self.secondFunction()