Quoting [email protected]: > My pygtk app displays svg graphics. This works fine on Linux, but > displays nothing on Windows. This FAQ entry, though dated, confirms > my suspicions that PyGtk does not support SVG on Windows: > http://faq.pygtk.org/index.py?req=show&file=faq08.010.htp .
The faq has been wrong for a long time, so I've removed that comment. I have to admit, however, that getting things working might not be obvious at first. For example, if you're using one of the "gtk+ bundles", you don't have the pixbuf-loader responsible for loading svg files (lib\gtk-2.0\2.10.0\loader\svg_loader.dll in your GTK+ installation). Yep, the gtk+-bundle distribution does not contain that library and it's dependencies out of the box. You'll need to install the following into your GTK+ installation, all available from http://ftp.gnome.org/pub/GNOME/binaries/win32/: svg-gdk-pixbuf-loader_2.26.2-1_win32.zip librsvg_2.26.2-1_win32.zip libcroco_0.6.2-1_wxin32.zip libxml2_2.7.7-1_win32.zip libgsf_1.14.17-1_win32.zip Once you've done that, you'll need to execute the following commands: cd ?:\???\my-gtk+-installation\bin gdk-pixbuf-query-loaders.exe > ..\etc\gtk-2.0\gdk-pixbuf.loaders That's about it, Have fun, Dieter ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
