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 'pysamples/load_block.py') diff --git a/pysamples/load_block.py b/pysamples/load_block.py index b42df4f..8924605 100644 --- a/pysamples/load_block.py +++ b/pysamples/load_block.py @@ -21,6 +21,15 @@ # This procedure is invoked when the user-definable block on the "extras" # palette is selected. +# Usage: Import this code into a Python (user-definable) block; when +# this code is run, the turtle will create a block at the current +# location of the turtle. The first argument to the Python block +# should be a string containing the name of the desired +# block. Arguments to the block can be passed by expanding the Python +# block to include up to two additional arguments. Note that the +# height of the block is pushed to the FILO heap and can be used to +# advance the position of the turtle when creating stacks. + def myblock(tw, blkname): -- cgit v0.9.1