Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/plugins/turtle_blocks_extras
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2013-12-10 23:02:00 (GMT)
committer Walter Bender <walter@sugarlabs.org>2013-12-10 23:02:00 (GMT)
commit7675249cff03e9c52a1dc58f46da761ebfee85b5 (patch)
treed421eda5c04e9cdcb53fe5df41b8c3ea943907d0 /plugins/turtle_blocks_extras
parent647c4eef50724e073df6a165cbdabf7e0b4ef9b0 (diff)
allow load/save heap to file to use media blocks as args
Diffstat (limited to 'plugins/turtle_blocks_extras')
-rw-r--r--plugins/turtle_blocks_extras/turtle_blocks_extras.py5
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',