James Henstridge discourseth:
> 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.

Should I do that within *all* such functions even if I'm not using
threading?  The 25-April-1999 note in NEWS says that
threads_enter()/threads_leave is *not* required from timeout/idle
functions.  I figured that wrapping was needed when calling gtk
functions from threads other than the one that called mainloop().

OTOH, I certainly found PyGtk_BlockThreads()/PyGtk_UnblockThreads()
essential within my *C* signal handlers when calling back to python
even though I wasn't using threads.

Maybe there should be a little note in the distribution outlining
these requirements.

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

Reply via email to