[pygtk] Test the thread context...
Mystilleef
mystilleef at gmail.com
Tue Jan 30 19:20:56 WST 2007
On 1/30/07, Cyril Giraudon <cyril.giraudon at free.fr> wrote:
> Hi,
>
> I try to run a pygtk application in multi threaded context.
> The application was originally written for one process.
>
> I'd like the application knows its execution context.
>
> Is there a way to check whether gtk.gdk.threads_init has been executed ?
>
> Thanks a lot,
>
> Cyril.
>
Why don't you call the function in the main thread? It should be one
of the functions you should call before anything, I believe. Once the
function has been called you don't need to worry about it again.
Cheers
More information about the pygtk
mailing list