On Mon, Jan 19, 2004 at 11:40:13PM -0800, Jeff Bowden wrote:
> 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))

-> FAQ 8.6 (corrections appreciated)

    http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq08.006.htp

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331
_______________________________________________
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