Qtimer and extra argument
luca72
lucaberto at libero.it
Wed Oct 26 05:36:51 EDT 2016
Hello i hope that yo can reply to this question also if the argument is pyqt
i have a simple test:
def start_timer(self):
self.timer = QTimer()
testo = 'pressed'
self.timer.singleShot(1000, self.metto_testo)
def test(self, testo):
self.lineEdit.setText(testo)
How i can pass the variable testo to the def test?
If i use :
self.timer.singleShot(1000, self.metto_testo(testo)
i get error
Thanks
More information about the Python-list
mailing list