Mauricio Téllez wrote:

Hi, I start a little program that need a kind of image galley, so I use
something like that:
...
box = gtk.HBox()
im =gtk.Image()
im.set_from_file("my.jpg")
im.show()
box.pack_start(im)
...

that works fine, except that the image is displayed in his natural way,
and I need to displayed smaller than the actual size. Any suggestion?
Thanks



im.set_from_pixbuf(gtk.gdk.pixbuf_new_from_file("my.jpg").scale_simple(150,150,gtk.gdk.INTERP_BILINEAR))



_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to