diff options
author | Walter Bender <walter@sugarlabs.org> | 2013-12-10 23:02:00 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2013-12-10 23:02:00 (GMT) |
commit | 7675249cff03e9c52a1dc58f46da761ebfee85b5 (patch) | |
tree | d421eda5c04e9cdcb53fe5df41b8c3ea943907d0 /plugins | |
parent | 647c4eef50724e073df6a165cbdabf7e0b4ef9b0 (diff) |
allow load/save heap to file to use media blocks as args
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/turtle_blocks_extras/turtle_blocks_extras.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/turtle_blocks_extras/turtle_blocks_extras.py b/plugins/turtle_blocks_extras/turtle_blocks_extras.py index 62dd40f..2bb07dd 100644 --- a/plugins/turtle_blocks_extras/turtle_blocks_extras.py +++ b/plugins/turtle_blocks_extras/turtle_blocks_extras.py @@ -543,7 +543,7 @@ make "tmp first :taheap\nmake "taheap butfirst :taheap\noutput :tmp\nend\n') last-out heap) to a file')) self.tw.lc.def_prim('saveheap', 1, Primitive(self.tw.lc.save_heap, - arg_descs=[ArgSlot(TYPE_STRING)])) + arg_descs=[ArgSlot(TYPE_OBJECT)])) palette.add_block('loadheap', style='basic-style-1arg', @@ -554,8 +554,7 @@ last-out heap) to a file')) last-out heap) from a file')) self.tw.lc.def_prim('loadheap', 1, Primitive(self.tw.lc.load_heap, - arg_descs=[ArgSlot(TYPE_STRING)], - return_type=TYPE_STRING, + arg_descs=[ArgSlot(TYPE_OBJECT)], call_afterwards=self.after_push)) palette.add_block('isheapempty2', |