Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tawindow.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2012-01-18 13:15:39 (GMT)
committer Walter Bender <walter.bender@gmail.com>2012-01-18 13:15:39 (GMT)
commita10bc4ff15da53ab43c016976b4b7138b158ea91 (patch)
treef735892c092d9f4ece0ad506445cce57697f89e6 /TurtleArt/tawindow.py
parent414ff0fce4ffc48c7f17acf993d9000a2e424cc0 (diff)
reworking of activity-specific metadata
Diffstat (limited to 'TurtleArt/tawindow.py')
-rw-r--r--TurtleArt/tawindow.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index b6dc787..4634ccc 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -1371,11 +1371,14 @@ class TurtleArtWindow():
newblk.connections[i + 1] = argblk
self.drag_group = find_group(newblk)
self.block_operation = 'new'
+ debug_output(newblk.name, True)
if len(newblk.spr.labels) > 0 and newblk.spr.labels[0] is not None \
and newblk.name not in ['', 'number', 'string']:
- if newblk.spr.labels[0] not in self.used_block_list:
- if len(self.used_block_list) > 0:
- self.used_block_list.append(', ')
+ if len(self.used_block_list) > 0:
+ self.used_block_list.append(', ')
+ if newblk.name in special_names:
+ self.used_block_list.append(special_names[newblk.name])
+ elif newblk.spr.labels[0] not in self.used_block_list:
self.used_block_list.append(newblk.spr.labels[0])
def _new_macro(self, name, x, y):
@@ -2870,9 +2873,11 @@ class TurtleArtWindow():
blk.connections = 'check'
if self.running_sugar and len(blk.spr.labels) > 0 and \
blk.name not in ['', ' ', 'number', 'string']:
- if blk.spr.labels[0] not in self.used_block_list:
- if len(self.used_block_list) > 0:
- self.used_block_list.append(', ')
+ if len(self.used_block_list) > 0:
+ self.used_block_list.append(', ')
+ if blk.name in special_names:
+ self.used_block_list.append(special_names[blk.name])
+ elif blk.spr.labels[0] not in self.used_block_list:
self.used_block_list.append(blk.spr.labels[0])
return blk