Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tautils.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2010-02-28 03:18:06 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-02-28 03:18:06 (GMT)
commit290582e58a295e4448963a919a8e61db3bc208f6 (patch)
treec9502bb59ddd80b3223d8d1e483b1d0540644f79 /tautils.py
parentabe042d1fa74fa540c980f63d8bc4f1656196d50 (diff)
save as SVG
Diffstat (limited to 'tautils.py')
-rw-r--r--tautils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tautils.py b/tautils.py
index a889095..48ac5ce 100644
--- a/tautils.py
+++ b/tautils.py
@@ -143,6 +143,10 @@ def save_picture(canvas, fname):
0, 0, 0, 0, canvas.width, canvas.height)
pixbuf.save(fname, 'png')
+def save_svg(string, fname):
+ f = file(fname, "w")
+ f.write(string)
+ f.close()
def get_pixbuf_from_journal(dsobject, w, h):
try: