From 2e318550e82fd206c7487565632af52ae27696e5 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Fri, 18 Jan 2013 13:46:59 +0000 Subject: use _ for color constant values --- (limited to 'TurtleArt/tablock.py') 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)) -- cgit v0.9.1