From 3f588a5f8e2f9fbaf2c2329eb23a34c362d7a345 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 21 Mar 2011 22:25:27 +0000 Subject: added comments to Python samples (#2709) --- (limited to 'NEWS') diff --git a/NEWS b/NEWS index 48859dc..3a0e890 100644 --- a/NEWS +++ b/NEWS @@ -11,6 +11,7 @@ ENHANCEMENTS * Shared turtles are updated after mouse drag (#2687) * Shared turtles cannot be repositioned remotely (#2687) * Turtles are synchronized when joining share (#2687) +* Comments on usage included in the python sample code (#2709) BUG FIXES @@ -20,10 +21,17 @@ BUG FIXES * Fixed regression with camera_plugin after refactoring (#2689) * Fixed problem with saving/loading extra turtles when nick changes (#2441) -FLAG +PYTHON CODE FLAG DAY * Userdefined code gets TurtleWindow instance rather than LogoCode - instance as first argument + instance as first argument. This change was made in order to better + accommodate and better parallel the new plugin mechanism. Most + likely, you had been referencing tw, the TurtleWindow instance from + lc, the LogoCode instance, e.g., lc.tw. Now you can reference tw + directly, e.g., tw. To reference lc, use tw.lc. Also note that the + push_mouse_event.py sample has changed. The x,y position of the + mouse is now always pushed to the stack, whether or not the mouse + button is pressed. 106 -- cgit v0.9.1