From 805465750d7c442f4b1e7ee7f03014bf6b0c5ace Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sat, 09 Oct 2010 13:57:36 +0000 Subject: check for block==None before checking to see if block is proto --- (limited to 'TurtleArt') 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 -- cgit v0.9.1