Created
March 19, 2012 20:36
-
-
Save prideout/2126890 to your computer and use it in GitHub Desktop.
generate SVG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from xml.etree import ElementTree as etree | |
from functools import partial | |
Circle = partial(etree.Element, 'svg:circle') | |
c = Circle(cx='100', cy='200', fill='red') | |
etree.tostring(c) | |
# <svg:circle cx="100" cy="200" fill="red" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment