Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tawindow.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2010-03-08 19:48:32 (GMT)
committer Walter Bender <walter@sugarlabs.org>2010-03-08 19:48:32 (GMT)
commitf7f49055fb88e5dfa03c43d91f3c29f7a48aca76 (patch)
treeeccb55f07b8a59c5a5c9976a1461bf9eada34e68 /tawindow.py
parentafcef112045a0b59f2ad9a89936548cff070bd57 (diff)
cleaned up export HTML logic
Diffstat (limited to 'tawindow.py')
-rw-r--r--tawindow.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tawindow.py b/tawindow.py
index 781b144..5f9b69b 100644
--- a/tawindow.py
+++ b/tawindow.py
@@ -182,6 +182,7 @@ class TurtleArtWindow():
self.topy = (self.canvas.height*(TITLEXY[1]-0.125))/(self.coord_scale*2)
self.bottomy = 0
self.lc = LogoCode(self)
+ self.saved_pictures = []
"""
Register the events we listen to.
@@ -2650,6 +2651,9 @@ class TurtleArtWindow():
else:
save_picture(self.canvas, file_path)
+ # keep a log of the saved pictures for export to HTML
+ self.saved_pictures.append(file_path)
+
if self.running_sugar:
dsobject = datastore.create()
if len(name) == 0: