[pygtk] DrawingArea and multiprocessing?

Pietro Battiston toobaz at email.it
Thu May 20 06:17:52 WST 2010


Il giorno mer, 19/05/2010 alle 14.43 -0700, Stuart Axon ha scritto:
> Has anybody successfully used a DrawingArea along with multiprocessing?
> 
> I'm trying to get it to work, but am a bit confused.
> 
> 
> I was imagining I could run gtk.main in one thread, and update the drawing area in the other, is there a simple example somewhere?
> 
> (At the moment I just get no redraws)
> 

Apart from
http://faq.pygtk.org/index.py?req=all#20.1
and from the fact that life is simpler if only main thread plays with
widgets, then consider that multiprocessing does _not_ use threads, but
separate processes instead.

Pietro



More information about the pygtk mailing list