[pygtk] is GTK thread safe?

shawn bright nephish at gmail.com
Thu Apr 5 11:07:16 WST 2007


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


More information about the pygtk mailing list