On Wed, Jul 23, 2003 at 01:39:28PM +0200, Carlos Garcia Campos wrote:
> > >
> > > I'm trying to load some png images, and I used to use the GdkImLib
>
> image = gtk.Image()
> image.set_from_file(filename)
>
What about
import gtk
pixbuf = gtk.gdk.pixbuf_new_from_file(imagefilename)
listed in FAQ 8.2? I thought gtk.Image only loaded XPMs, but now I see
that's not the case:
http://developer.gnome.org/doc/API/2.0/gtk/GtkImage.html
Somebody want to clarify and update the FAQ?
Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/