views:

94

answers:

1

I see discussion about qt threads vs python threads but how do you create and call qt threads in python? how do you give it access to your functions in another thread?

Thanks!

+1  A: 

There's a good, fully worked-out example here.

Alex Martelli
In this example, it doesn't seem to open up the threads in the if __name__ == '__main__' portion fo the code? Why is htis?
jim
Alex Martelli
So is this special subclass dealing with all of the signals/slots for me? So I don't need to manually deal with the threading of the gui versus my functional code? My apologise for the questions :)
jim
@jim, have you tried the long example I've pointed you to and the code in it? It does a good job _showing_ QThread's possibilites and limitations. For reference info, that does a good job of _telling_ you about it, see http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qthread.html and all links from http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/threads.html .
Alex Martelli