diff options
author | Walter Bender <walter@sugarlabs.org> | 2010-10-21 02:33:00 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2010-10-21 02:33:00 (GMT) |
commit | 36a3a644ddb7fe324df232673afefd171ce4c7bb (patch) | |
tree | 5a4e97b8477039acf462b9881d564de974dd1449 /TurtleArt/tawindow.py | |
parent | c0e138f0e4d5cef86f6290e9a10d36a7efa695a5 (diff) |
updates
Diffstat (limited to 'TurtleArt/tawindow.py')
-rw-r--r-- | TurtleArt/tawindow.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py index b0db7ac..2d39667 100644 --- a/TurtleArt/tawindow.py +++ b/TurtleArt/tawindow.py @@ -784,7 +784,8 @@ class TurtleArtWindow(): else: # You can only have one instance of some blocks if blk.name in ['start', 'hat1', 'hat2']: - if len(self.block_list.get_all_blocks_of_same_type_and_name('block', blk.name)) > 0: + if len(self.block_list.get_similar_blocks( + 'block', blk.name)) > 0: return True blk.highlight() self._new_block(blk.name, x, y) |