diff options
Diffstat (limited to 'pysamples/copy_from_heap.py')
-rw-r--r-- | pysamples/copy_from_heap.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pysamples/copy_from_heap.py b/pysamples/copy_from_heap.py index 1978c26..5eb7bab 100644 --- a/pysamples/copy_from_heap.py +++ b/pysamples/copy_from_heap.py @@ -21,8 +21,11 @@ # 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 FILO heap will be copied to the clipboard. -def myblock(lc, x): # second argument is ignored + +def myblock(tw, x): # second argument is ignored ########################################################################### # @@ -31,6 +34,6 @@ def myblock(lc, x): # second argument is ignored ########################################################################### from gtk import Clipboard - from tautils import data_to_string + from TurtleArt.tautils import data_to_string - Clipboard().set_text(data_to_string(lc.heap)) + Clipboard().set_text(data_to_string(tw.lc.heap)) |