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