Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2011-10-22 12:23:02 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-10-22 12:23:02 (GMT)
commitf6b39fb309a303f50576bcbb33275a6760a9d484 (patch)
tree98dab54e5e00f7a243e202013294842177667cea /TurtleArt
parent60705f880cb12d9e7c5137f91d22ef5d4a9e55df (diff)
added spaces to list instead of to names
Diffstat (limited to 'TurtleArt')
-rw-r--r--TurtleArt/tawindow.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index 6faf1ff..dc58273 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -1312,7 +1312,8 @@ 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:
- self.used_block_list.append(newblk.spr.labels[0] + ' ')
+ 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). """
@@ -2765,9 +2766,10 @@ class TurtleArtWindow():
if check_dock:
blk.connections = 'check'
if blk.spr.labels[0] is not None and \
- blk.name not in ['', 'number', 'string']:
+ blk.name not in ['', ' ', 'number', 'string']:
if blk.spr.labels[0] not in self.used_block_list:
- self.used_block_list.append(blk.spr.labels[0] + ' ')
+ self.used_block_list.append(blk.spr.labels[0])
+ self.used_block_list.append(' ')
return blk
def load_start(self, ta_file=None):