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>2010-10-09 13:57:36 (GMT)
committer Walter Bender <walter@sugarlabs.org>2010-10-09 13:57:36 (GMT)
commit805465750d7c442f4b1e7ee7f03014bf6b0c5ace (patch)
treea0bf2efedfd22134d9046e42107adb2fbd1b0722 /TurtleArt/tawindow.py
parent668bba65b0a17ba9883150bc8bf7b18b7b7fd6f7 (diff)
check for block==None before checking to see if block is proto
Diffstat (limited to 'TurtleArt/tawindow.py')
-rw-r--r--TurtleArt/tawindow.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index 2b0abc8..ae56f3c 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -1821,7 +1821,8 @@ class TurtleArtWindow():
return True
# Otherwise, use keyboard input to move blocks or turtles
# but not proto blocks
- elif self.selected_blk.name != 'proto':
+ elif self.selected_blk is not None and \
+ self.selected_blk.name != 'proto':
self._process_keyboard_commands(keyname)
if self.selected_blk is None:
return False