[pygtk] Image gallery
v.isca at inwind.it
v.isca at inwind.it
Fri Mar 2 05:16:46 WST 2007
Hello all!
I don't know if it's a good idea writing an image viewer in pygtk for performance motive, but I'd like it at least for personal use.
The core function is this:
def Make_Thumbnails(self,event):
i=0
for infile in self.list:
pixbuf = gtk.gdk.pixbuf_new_from_file(infile) scaled_buf=pixbuf.scale_simple(200,150,gtk.gdk.INTERP.BILINEAR)
self.image[i].set_from_pixbuf(scaled_buf)
i+=1
del pixbuf
The problem is that the gallery is dispayed when all images are processed.
Is it possible display images progressively?
I've tried with the gtk.gdkpixbufloader() , with the same result.
Thanks!
------------------------------------------------------
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada1marz07
More information about the pygtk
mailing list