Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
path: root/pysamples/load_block.py
diff options
authorWalter Bender <walter.bender@gmail.com>2011-03-21 22:25:27 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-03-21 22:25:27 (GMT)
commit3f588a5f8e2f9fbaf2c2329eb23a34c362d7a345 (patch)
tree7afc207a0f31af33baa3f35fe803169ae3ac03c4 /pysamples/load_block.py
parent1969d568bb440424d4128f627ac62ad3d5c62172 (diff)
added comments to Python samples (#2709)
Diffstat (limited to 'pysamples/load_block.py')
1 files changed, 9 insertions, 0 deletions
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):