diff options
Diffstat (limited to 'TurtleArt')
-rw-r--r-- | TurtleArt/tabasics.py | 4 | ||||
-rw-r--r-- | TurtleArt/tapalette.py (renamed from TurtleArt/taprimitive.py) | 0 |
2 files changed, 2 insertions, 2 deletions
diff --git a/TurtleArt/tabasics.py b/TurtleArt/tabasics.py index 8d0e387..685c063 100644 --- a/TurtleArt/tabasics.py +++ b/TurtleArt/tabasics.py @@ -45,7 +45,7 @@ add_block method in the Palette class. # of arguments, 0 in this case, and the function to call, in this # case, the canvas function to set the heading. self.tw.lc.def_prim('uturn', 0, - lambda self, x: self.tw.canvas.seth(self.tw.canvas.heading + 180)) + lambda self: self.tw.canvas.seth(self.tw.canvas.heading + 180)) That's it. When you next run Turtle Art, you will have a 'uturn' block on the 'mypalette' palette. @@ -64,7 +64,7 @@ from random import uniform from gettext import gettext as _ -from taprimitive import make_palette +from tapalette import make_palette from talogo import PLUGIN_DICTIONARY, logoerror from taconstants import CONSTANTS, BLACK, WHITE from tautils import convert, chr_to_ord, round_int, strtype diff --git a/TurtleArt/taprimitive.py b/TurtleArt/tapalette.py index 7eea957..7eea957 100644 --- a/TurtleArt/taprimitive.py +++ b/TurtleArt/tapalette.py |