Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tautils.py
diff options
context:
space:
mode:
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: