Skip to navigation
Delay mechanism in python
07.12.13
delayedresult.startWorker(self.consumeResult, self.produceResult) def produceResult(self): "Simulates a slow operation running in its own thread" time.sleep(10) return "xxx" def consumeResult(self, delayedResult): self.r = delayedResult.get() print self.r http://pythonbook.hajji.name/de/gui.html
Reply
Anonymous
Information Epoch 1736530449
You can always add complexity.
Home
Notebook
Contact us