[pygtk] is GTK thread safe?

John Stowers john.stowers.lists at gmail.com
Thu Apr 5 14:25:55 WST 2007


Shawn,

See http://www.johnstowers.co.nz/blog/index.php/2007/03/12/threading-and-pygtk/

For a post I wrote on the topic discussing and linking to some approaches

John

On 4/5/07, shawn bright <nephish at gmail.com> wrote:
> lo there all,
>
> i have an app in GTK2 with python that uses 12 threads, 5 of these
> write to buffers in the main GUI app. Sometimes i am getting all kinds
> of errors about buffers, iters and such. I have been researching my
> errors, but can't seem to find where to fix them.
>
> I have read the GUI apps (not just GTK2) are not really thread safe,
> that my worker threads should not be updating views and buffers that
> are passed to them ( even though they work most of the time ) . But
> how could i have a class threading.Thread send info to a class main()
> for the GUI to write it to a buffer ?
>
> Any help here would be greatly appreciated.
>
> thanks
>
> sk
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>


More information about the pygtk mailing list