From a235d73e15b6101187547bbc52bc47eab225d5b4 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Thu, 19 Jul 2012 13:04:26 +0000 Subject: remove some journal spam (multiple copies of project) when using Python blocks; mark unknown blocks as unknown --- (limited to 'TurtleArt/tablock.py') diff --git a/TurtleArt/tablock.py b/TurtleArt/tablock.py index dd1ac04..b0e3dc5 100644 --- a/TurtleArt/tablock.py +++ b/TurtleArt/tablock.py @@ -151,6 +151,7 @@ class Block: self._font_size = [6.0, 4.5] self._image = None self._visible = True + self.unknown = False # Block is of unknown style self.block_methods = { 'basic-style': self._make_basic_style, @@ -595,6 +596,7 @@ class Block: return error_output('ERROR: block type not found %s' % (self.name)) self.block_methods['blank-style'](svg) + self.unknown = True def _set_colors(self, svg): if self._custom_colors: -- cgit v0.9.1