Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/taproject.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2009-01-06 00:27:35 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2009-01-06 00:27:35 (GMT)
commit28c7e3e4d2f43f158156c3f17d8b64e7053ab019 (patch)
tree2a1b04857a617c8c3d2a99d9bec55a833d252259 /taproject.py
parent613a0e21513bc6a4ed9093f9e29698c94287606d (diff)
* add named boxes and stacks
Diffstat (limited to 'taproject.py')
-rw-r--r--taproject.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/taproject.py b/taproject.py
index 2078e6b..41ae539 100644
--- a/taproject.py
+++ b/taproject.py
@@ -122,7 +122,8 @@ def save_data(tw,fname):
for i in range(len(bs)): bs[i].id=i
for b in bs:
name = b.proto.name
- if name=='number': name=(name,b.label)
+# if name=='number': name=(name,b.label)
+ if tw.defdict.has_key(name): name=(name,b.label)
connections = [get_id(x) for x in b.connections]
data.append((b.id,name,b.x-tw.turtle.canvas.x,b.y-tw.turtle.canvas.y,connections))
data.append((-1,'turtle',