Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tablock.py
diff options
context:
space:
mode:
Diffstat (limited to 'TurtleArt/tablock.py')
-rw-r--r--TurtleArt/tablock.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/TurtleArt/tablock.py b/TurtleArt/tablock.py
index 865e8e9..5f61b5e 100644
--- a/TurtleArt/tablock.py
+++ b/TurtleArt/tablock.py
@@ -119,6 +119,13 @@ class Blocks:
return block
return None
+ def get_all_blocks_of_same_type_and_name(self, type, name):
+ block_list = []
+ for block in self.list:
+ if block.type == type and block.name == name:
+ block_list.append(block)
+ return block_list
+
class Block:
""" A class for the individual blocks """