[PyQt] QThread, suggestions.
Brian Kelley
kelley at eyesopen.com
Thu Jan 29 12:45:24 GMT 2009
If you happen to be using python 2.6, multiprocessing is your friend.
http://docs.python.org/dev/library/multiprocessing.html
It is very easy to use and because it runs in a separate process, there is no global interpreter lock. Way, way, way better than threading for a lot of cases. If it crashes, the main program doesn't go down.
Brian
On 1/27/09 2:01 PM, "Matt Smith" <melkor at orangepalantir.org> wrote:
In java they have the "SwingWorker" class and I thought of a way to
implement something similar in python. Here is the code:
http://paste.pocoo.org/show/101578/
I use this for starting long running processes. Here is an example of
how I have used it.
http://orangepalantir.org/files/threadworker.py
I was curious for some input, It seems threads are often abused and I
don't want to be doing too much abusing.
mbs
_______________________________________________
PyQt mailing list PyQt at riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090129/07aa9751/attachment.html
More information about the PyQt
mailing list