Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tawindow.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2013-11-10 22:11:06 (GMT)
committer Walter Bender <walter@sugarlabs.org>2013-11-10 22:11:06 (GMT)
commit0b47572530b97b0a5afc18a8700e5f0bfb700746 (patch)
treea558667f202b89dca806784a9968f32e6ab9b5ca /TurtleArt/tawindow.py
parent12857ace39932b36826f37a464d50ecede0ee3e0 (diff)
skip invisible blocks when tabbing
Diffstat (limited to 'TurtleArt/tawindow.py')
-rw-r--r--TurtleArt/tawindow.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index 98cb20c..6ca07d6 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -3641,6 +3641,10 @@ before making changes to your program'))
i = 0
else:
i += 1
+ while(not p[i].get_visibility()):
+ i += 1
+ if i == len(p) - 1:
+ i = 0
self._highlighted_blk = p[i]
self._highlighted_blk.highlight()
self.selected_blk = p[i]