diff options
Diffstat (limited to 'pysamples/load_journal_entry_to_heap.py')
-rw-r--r-- | pysamples/load_journal_entry_to_heap.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pysamples/load_journal_entry_to_heap.py b/pysamples/load_journal_entry_to_heap.py index cf2ec7e..512de76 100644 --- a/pysamples/load_journal_entry_to_heap.py +++ b/pysamples/load_journal_entry_to_heap.py @@ -21,8 +21,13 @@ # 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 chooser will be opened for selecting a file +# from the Journal. The contents of that file will be loaded onto the +# FILO heap. -def myblock(lc, x): # ignore second argument + +def myblock(tw, x): # ignore second argument ########################################################################### # @@ -30,7 +35,7 @@ def myblock(lc, x): # ignore second argument # ########################################################################### - from tautils import chooser + from TurtleArt.tautils import chooser # Choose a datastore object and push data to heap (Sugar only) - chooser(lc.tw.parent, '', lc.push_file_data_to_heap) + chooser(tw.parent, '', tw.lc.push_file_data_to_heap) |