diff options
author | Walter Bender <walter.bender@gmail.com> | 2013-01-18 14:49:04 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2013-01-18 14:49:04 (GMT) |
commit | 253a0ecdaafc49a98bd0abb0a0981a51acbcc4f2 (patch) | |
tree | ba2ed060b5a300c40f362778a0f8a9f6e309ffc8 /plugins/turtle_blocks_extras/turtle_blocks_extras.py | |
parent | 07a3326f88d88bbb0b048da1f0965983be19fe26 (diff) |
print needs to know about the COLORDICT
Diffstat (limited to 'plugins/turtle_blocks_extras/turtle_blocks_extras.py')
-rw-r--r-- | plugins/turtle_blocks_extras/turtle_blocks_extras.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/turtle_blocks_extras/turtle_blocks_extras.py b/plugins/turtle_blocks_extras/turtle_blocks_extras.py index 43703a7..f6223f1 100644 --- a/plugins/turtle_blocks_extras/turtle_blocks_extras.py +++ b/plugins/turtle_blocks_extras/turtle_blocks_extras.py @@ -30,7 +30,7 @@ from TurtleArt.talogo import primitive_dictionary, logoerror, \ media_blocks_dictionary from TurtleArt.taconstants import DEFAULT_SCALE, ICON_SIZE, CONSTANTS, \ MEDIA_SHAPES, SKIN_PATHS, BLOCKS_WITH_SKIN, PYTHON_SKIN, \ - PREFIX_DICTIONARY, VOICES, MACROS + PREFIX_DICTIONARY, VOICES, MACROS, COLORDICT from TurtleArt.tautils import convert, round_int, debug_output, get_path, \ data_to_string, find_group, image_to_base64 from TurtleArt.tajail import myfunc, myfunc_import @@ -1148,7 +1148,12 @@ bullets')) if type(n) == list: self.tw.showlabel('print', n) elif type(n) == str or type(n) == unicode: - if n[0:6] == 'media_' and \ + if n in COLORDICT: + if COLORDICT[n][0] is None: + self.tw.showlabel('print', COLORDICT[n][1]) + else: + self.tw.showlabel('print', COLORDICT[n][0]) + elif n[0:6] == 'media_' and \ n[6:].lower not in media_blocks_dictionary: try: if self.tw.running_sugar: |