From 8f8f9bc244cc284faa74bf6b6cfd6999db9c0213 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sat, 05 Mar 2011 11:58:03 +0000 Subject: rename taprimitive.py to more appropriate tapalette.py --- (limited to 'TurtleArt') 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 -- cgit v0.9.1