diff options
author | Walter Bender <walter@sugarlabs.org> | 2014-01-24 00:06:43 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2014-01-24 00:06:43 (GMT) |
commit | 30ff5e89db6ac91b6bc49d15f4d2e7984fc0bc0a (patch) | |
tree | 77e1ded186bd89cc89c5a6b9da3e94a4d7cdc409 /TurtleArt/tatype.py | |
parent | e07c9f11f03e239e56345ea05bd34b31716b52f9 (diff) |
fix to color constant block
Diffstat (limited to 'TurtleArt/tatype.py')
-rw-r--r-- | TurtleArt/tatype.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/TurtleArt/tatype.py b/TurtleArt/tatype.py index 0fcfc3c..709a200 100644 --- a/TurtleArt/tatype.py +++ b/TurtleArt/tatype.py @@ -23,7 +23,7 @@ import ast from tablock import Media -from taconstants import (Color, CONSTANTS) +from taconstants import (Color, ColorObj, CONSTANTS) class Type(object): @@ -189,6 +189,7 @@ TYPE_CONVERTERS = { # converting A -> C must yield the same result as converting A -> B -> C. # TYPE_OBJECT is the supertype of everything. TYPE_BOX: { + TYPE_COLOR: ColorObj, # FIXME: should be Color.name TYPE_FLOAT: float, TYPE_INT: int, TYPE_NUMBER: float, |