Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2011-11-08 23:51:13 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-11-08 23:51:13 (GMT)
commit1e888f94f6fea1297a6aee2af0efcfa5546ee208 (patch)
tree6df7ca4afff94632ace9f74ee0c675b7d9924581
parent1d98109a6248d48c166122d79e112f35a4f4b8c1 (diff)
add comma separators for used block list
-rw-r--r--TurtleArt/tawindow.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index f9f1696..0ded3cb 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -1356,8 +1356,9 @@ class TurtleArtWindow():
if 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(', ')
self.used_block_list.append(newblk.spr.labels[0])
- self.used_block_list.append(' ')
def _new_macro(self, name, x, y):
""" Create a "macro" (predefined stack of blocks). """
@@ -2838,8 +2839,9 @@ class TurtleArtWindow():
if self.running_sugar and blk.spr.labels[0] is not None 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(', ')
self.used_block_list.append(blk.spr.labels[0])
- self.used_block_list.append(' ')
return blk
def load_start(self, ta_file=None):