[pygtk] pygtk svg image problem...

Muhammad Ali ali.jan at gmail.com
Wed Mar 30 18:07:22 WST 2005


Hi everyone,

I am running python 2.4 with pygtk version 2, 4, 1. I am trying to
open an svg image in a gtk.Image. I am getting the following error:

gobject.GError: Couldn't recognize the image file format for file
'E:\exp\BlueSphere\1downarrow.svg'

First I tried with the set_from_file method of Image but it would show
a broken image icon with on error so then i tried
pixbuf_new_from_file():

pic = gtk.gdk.pixbuf_new_from_file(fullname)
widgets['image'].set_from_pixbuf(pic)
widgets['image'].show()

which is now showing me the above error... any ideas as to what the
problem could be?

Thanks...

Regards,

Ali


More information about the pygtk mailing list