El jue, 24-07-2003 a las 15:12, Christian Reis escribió: > 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?
In gtk 2.x GtkImage can load various image types (xpm, png, jpg, tif, gif, ...) You can see an example here: http://www.moeraki.com/pygtktutorial/pygtk2tutorial/sec-Images.html KaL, -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Carlos Garcia Campos a.k.a. KaL [EMAIL PROTECTED] Grupo Linups - Secretaria Usuarios de SL/Linux de la UPSAM http://www.linups.org =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= PGP key: http://pgp.rediris.es:11371/pks/lookup?op=get&search=0x523E6462
signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmadadigitalmente
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
