[pygtk] Changing Images fast
Thomas Guettler
hv at tbz-pariv.de
Tue Jun 17 18:36:08 WST 2008
Hi,
how can you change images (large jpegs) fast? Even if they are already
loaded
and scaled, changing it needs some time.
Here is the current code:
{{{
pixbuf=self.imageCache.get(self.image.filename, *self.size())
self.gtkimage.set_from_pixbuf(pixbuf)
self.gtkimage.show()
}}}
The imageCache has got the pixbuf already loaded, but nevertheless I think
it could be faster. How can this be improved? Maybe use a second gtkimage
and set the pixbuf beforehand?
Source:
http://guettli.sourceforge.net/gthumpy/src/Application.py
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
More information about the pygtk
mailing list