You should be able to use python threading without problems.  Just
remember that you have to acquire the GTK thread lock with
threads_enter(), and release it with threads_leave() afterwards, when you
do any GTK calls.

Note that you don't need to acquire the gtk thread lock from within signal
handlers, but do have to from within timeout, idle and IO callback
functions.

Also, get a recent version (>= 0.6.2) as things did not work correctly
with previous versions.

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


On 16 Nov 1999, Hrvoje Niksic wrote:

> What is the current level of support for threading in PyGTK?  Last
> time I checked, threading had problems because threads weren't enabled
> upon entrance to main loop, and in several other places.
> 
> Specifically, how does Gtk's threading model mesh with Python's
> threading?  Is it possible for the main loop to be running in a
> separate thread (and the application be responsive) while different
> Python threads do useful work and update widgets accordingly?
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
> 

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to