Discussion:
dealing with the gtk_main_iteration bottleneck
ricardo lafuente
2009-06-24 04:42:34 UTC
Permalink
i've stumbled into this (apparently) recent document over at
cairographics.org:
http://cairographics.org/threaded_animation_with_cairo

which deals precisely with using threads to handle heavy GTK drawing
loops. It's not Python oriented, but it looks like it's the way to go to
solve the GTK loop chugginess that Stuart detected.

the Threading python module looks like the way to go:
http://docs.python.org/library/threading.html

i'll try hacking on this later on, if anyone also wants to give it a
shot let me know so that we can synchronise efforts!
ricardo lafuente
2009-06-24 06:48:31 UTC
Permalink
Post by ricardo lafuente
It's not Python oriented, but it looks like it's the way to go to
solve the GTK loop chugginess that Stuart detected.
there's a few very useful resources on PyGTK and threading too, i think
all we'll need is here:
- http://unpythonic.blogspot.com/2007/08/using-threads-in-pygtk.html
- http://aruiz.typepad.com/siliconisland/2006/04/threads_on_pygt.html
- http://www.pardon-sleeuwaegen.be/antoon/python/page0.html

Loading...