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 <[EMAIL PROTECTED]> 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 [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
_______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
