diff options
author | Walter 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) |
commit | 2e318550e82fd206c7487565632af52ae27696e5 (patch) | |
tree | 6c6d3b8c863b4dae36dc0fad407ed743e9b4e2db /TurtleArt/tacanvas.py | |
parent | 0bc8c883d287b64df35d6553ab43e7d11f7160d4 (diff) |
use _ for color constant values
Diffstat (limited to 'TurtleArt/tacanvas.py')
-rw-r--r-- | TurtleArt/tacanvas.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/TurtleArt/tacanvas.py b/TurtleArt/tacanvas.py index d7ef452..1272b6b 100644 --- a/TurtleArt/tacanvas.py +++ b/TurtleArt/tacanvas.py @@ -435,7 +435,7 @@ class TurtleGraphics: ''' Set the pen color ''' # Special case for color blocks - if c in CONSTANTS: + if c in COLORDICT: self.setshade(COLORDICT[c][1], share) self.setgray(COLORDICT[c][2], share) if COLORDICT[c][0] is not None: @@ -516,15 +516,15 @@ class TurtleGraphics: oldc, olds, oldg = self.color, self.shade, self.gray # Special case for color blocks - if c in CONSTANTS: + if c in COLORDICT: if COLORDICT[c][0] is None: s = COLORDICT[c][1] c = self.color else: c = COLORDICT[c][0] - if s in CONSTANTS: + if s in COLORDICT: s = COLORDICT[s][1] - if g in CONSTANTS: + if g in COLORDICT: g = COLORDICT[g][2] self.setcolor(c, False) |