Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tawindow.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2010-01-25 21:50:42 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-01-25 21:50:42 (GMT)
commitd55ff0e2c64ea5c90a8573ca97b969e09a143d2b (patch)
tree2de4f7e2c584446f706b93e529e50c270b0fe59e /tawindow.py
parentf1536aca0823e0a37a62926ec1262ab3e59a9d90 (diff)
filter out proto blocks
Diffstat (limited to 'tawindow.py')
-rw-r--r--tawindow.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tawindow.py b/tawindow.py
index 7c623ae..acc7a96 100644
--- a/tawindow.py
+++ b/tawindow.py
@@ -1009,9 +1009,16 @@ class TurtleArtWindow():
return
self.lc.ag = None
top = self._find_top_block(blk)
- run_blocks(self.lc, top, self.block_list.list, True)
+ run_blocks(self.lc, top, self._just_blocks(), True)
gobject.idle_add(doevalstep, self.lc)
+ def _just_blocks(self):
+ just_blocks_list = []
+ for b in self.block_list.list:
+ if b.type == 'block':
+ just_blocks_list.append(b)
+ return just_blocks_list
+
"""
Block selector pressed
TODO: move to toolbar