Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/plugins/turtle_blocks_extras/turtle_blocks_extras.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/turtle_blocks_extras/turtle_blocks_extras.py')
-rw-r--r--plugins/turtle_blocks_extras/turtle_blocks_extras.py9
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: