diff options
author | Walter Bender <walter.bender@gmail.com> | 2012-07-19 13:04:26 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2012-07-19 13:04:26 (GMT) |
commit | a235d73e15b6101187547bbc52bc47eab225d5b4 (patch) | |
tree | 8fd6f05d17207ddb675c3f27425727ecbbe84b64 /TurtleArt/tablock.py | |
parent | ac46746d4a80ac5c97e8fdb1846dccab1c3c931f (diff) |
remove some journal spam (multiple copies of project) when using Python blocks; mark unknown blocks as unknown
Diffstat (limited to 'TurtleArt/tablock.py')
-rw-r--r-- | TurtleArt/tablock.py | 2 |
1 files changed, 2 insertions, 0 deletions
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: |