13 August 2006

Svg in python

After hours of googling, and finding stuff like import cairo.svg, import rsvg and import gtk.librsvg, I found out, that the newest versions of gdk simply understand svg out of the box.

pixbuf = gtk.gdk.pixbuf_new_from_file("black-bishop.svg") will do it all! Sweet.

No comments: