Like this?
# When scan button is pressed
def scan(self, e):
for dev in self.deviceList:
thread = TestThread(self, dev)
thread.debugOutput.connect(self.updateTextEdit)
thread.start()
thread.finished.connect(self.isFinished)
def isFinished(self):
print("Thread finished")
# When scan button is pressed
def scan(self, e):
for dev in self.deviceList:
thread = TestThread(self, dev)
thread.debugOutput.connect(self.updateTextEdit)
thread.start()
thread.finished.connect(self.isFinished)
def isFinished(self):
print("Thread finished")
To copy to clipboard, switch view to plain text mode
I thought I might post it here, it took me a while to figure it out (newbie section, right?)
Bookmarks