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