views:

499

answers:

2

How can I draw a vector-based image from a file in wxPython? I know nothing of image formats for such a thing, so please recommend.

+3  A: 

You can do this with using cairo & librsvg python bindings. There is a small example here.

cartman
A: 

I have done something similar, I had a custom vector image format that I needed to render in a wxPython window. In order to accomplish this I used the GDI interface for drawing commands and I wrote my own parser module. There is a great GDI tutorial at this site that should help you out: http://www.zetcode.com/wxpython/gdi/

Adam Richardson