Solved Qt.Connection Type error
-
Hello all.
When i run this code...
self.timer = QTimer() self.timer.setInterval(1000) self.timer.timeout.connect(self.showtime, self.showbpm) self.timer.start() def showtime(self): time=QDateTime.currentDateTime() timeDisplay=time.toString(....) self.label.setText(timeDisplay) def showbpm(self): bpm=sum(....)/100 self.label2.setText(bpm)
... the output is:
self.time.timeout.connect(self.showtime, self.showbpm)
TypeError: Qt.ConnectionType expected, not 'method'How should I go about solving this error???
-
@DAMSdevnation said in Qt.Connection Type error:
self.timer.timeout.connect(self.showtime, self.showbpm)
You can't connect more than one slot to a signal in one connect() call...
-
Ok, thanks!!!