On Mon, 8 May 2000, George Farris wrote:
> Can someone point me to a quick tutorial and example programs about
> threads and pygtk. Any info would be helpful.
>
First make sure that python was compiled with thread support, and if you
didn't compile pygtk yourself, make sure it was compiled with thread
support.
Now you can write your program just like any other multithreaded python
program, except that you should call threads_enter() and
threads_leave() before and after any gtk code outside of the gtk
thread. Also note that idle, timeout and input functions are not called
with the gtk lock, so remember to call threads_enter/leave if you make gtk
calls in one of these callbacks.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]