[PyQt] pausing and resuming QThread tasks
frankel at circlesfx.com
Thu Apr 15 23:50:40 BST 2010
Seems good to me too ;)
I was curious to see how milliseconds could be germane to an
indefinite pause. Brilliant!
On Apr 15, 2010, at 1:24 PM, Russell Valentine wrote:
> What about just put this in your for loop. Then the pause/resume
> or whatever just toggles self.paused? That seems good to me.
> On 04/15/10 13:53, Scott Frankel wrote:
>> Hi all,
>> What's the best way to pause and resume processing in QThread
>> I've built a small test app that sets up a Python os.walk() process
>> I'd like to be able to pause and restart from where it left off. The
>> documentation on QWaitCondition looks promising, though my app
>> to hang on this line (line 69):
>> Also, in testing for a paused job in my processing method (line 104),
>> does a waiting thread resume from where it left off? Or do I need to
>> keep track of where it is myself and restart it from there?
>> Thanks in advance!
More information about the PyQt