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