From 1e888f94f6fea1297a6aee2af0efcfa5546ee208 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Tue, 08 Nov 2011 23:51:13 +0000 Subject: add comma separators for used block list --- 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): -- cgit v0.9.1