diff options
author | Marion <marion.zepf@gmail.com> | 2013-08-03 13:22:50 (GMT) |
---|---|---|
committer | Marion <marion.zepf@gmail.com> | 2013-08-03 13:22:50 (GMT) |
commit | 3510dada636ddb6813382b52f8bf5329e1c11637 (patch) | |
tree | 02cf70fea1746abb9e64cd1f493ee6b52c83c658 /TurtleArt/tabasics.py | |
parent | 8d8aca6f6442e619b2969053a156bdc5a772b9ca (diff) |
replace float.__neg__ with Primitive.minus, which can also be used for 2 args
Diffstat (limited to 'TurtleArt/tabasics.py')
-rw-r--r-- | TurtleArt/tabasics.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/TurtleArt/tabasics.py b/TurtleArt/tabasics.py index 04106c4..642f714 100644 --- a/TurtleArt/tabasics.py +++ b/TurtleArt/tabasics.py @@ -154,7 +154,7 @@ class Palettes(): help_string=_('moves turtle backward')) self.tw.lc.def_prim('back', 1, Primitive(Turtle.forward, - slot_wrappers={0: Primitive(float.__neg__, + slot_wrappers={0: Primitive(Primitive.minus, slot_wrappers={0: self.prim_cache["convert_value_for_move"] })}, call_afterwards=self.after_move)) @@ -186,7 +186,7 @@ in degrees)')) self.tw.lc.def_prim( 'left', 1, Primitive(Turtle.right, - slot_wrappers={0: Primitive(float.__neg__, + slot_wrappers={0: Primitive(Primitive.minus, slot_wrappers={0: self.prim_cache["check_number"]})}, call_afterwards=self.after_right)) |