Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tablock.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2013-01-18 13:46:59 (GMT)
committer Walter Bender <walter.bender@gmail.com>2013-01-18 13:46:59 (GMT)
commit2e318550e82fd206c7487565632af52ae27696e5 (patch)
tree6c6d3b8c863b4dae36dc0fad407ed743e9b4e2db /TurtleArt/tablock.py
parent0bc8c883d287b64df35d6553ab43e7d11f7160d4 (diff)
use _ for color constant values
Diffstat (limited to 'TurtleArt/tablock.py')
-rw-r--r--TurtleArt/tablock.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/TurtleArt/tablock.py b/TurtleArt/tablock.py
index c4c9110..0c8c249 100644
--- a/TurtleArt/tablock.py
+++ b/TurtleArt/tablock.py
@@ -506,10 +506,10 @@ class Block:
else:
self._set_labels(i, str(v))
elif self.type == 'block' and self.name in CONSTANTS:
- if self.name in COLORDICT:
- v = COLORDICT[self.name][0]
+ if CONSTANTS[self.name] in COLORDICT:
+ v = COLORDICT[CONSTANTS[self.name]][0]
if v is None:
- v = COLORDICT[self.name][1]
+ v = COLORDICT[CONSTANTS[self.name]][1]
else:
v = CONSTANTS[self.name]
self._set_labels(0, block_names[self.name][0] + ' = ' + str(v))