copy_from_heap.py

# Copy the following (less the # symbols) into TurtleArt to test
# [[0, ["start", 2.0], 685, 133, [null, 1]],
# [1, "push", 685, 175, [0, 2, 3]],
# [2, ["string", "text"], 747, 175, [1, null]],
# [3, ["userdefined", "/home/olpc/Activities/TurtleArt.activity/pysamples/copy_from_heap.py"], 685, 217, [1, 4, null]],
# [4, ["number", 100], 743, 217, [3, null]]]

dotted line.py
# Copy the following (less the # symbols) into TurtleArt to test
# [[0, ["start", 2.0], 676, 137, [null, 1]],
# [1, ["userdefined", "/home/olpc/Activities/TurtleArt.activity/pysamples/dotted_line.py"], 676, 179, [0, 2, null]],
# [2, ["number", 100], 734, 179, [1, null]]]

load_block
?????
File "<string>", line 33, in myblock
ImportError: cannot import name BLOCK_NAMES

???

load_journal_entry_to_heap.py
???
Traceback (most recent call last):
  File "/home/olpc/Activities/TurtleArt.activity/TurtleArt/tajail.py", line 50, in myfunc_import
    return userdefined['myblock'](lc, x)
  File "<string>", line 36, in myblock
AttributeError: 'Turtle_blocks_plugin' object has no attribute 'push_file_data_to_heap'
1
???

paste_to_heap
Python 100
Show heap
???getting error ????
Traceback (most recent call last):
  File "/home/olpc/Activities/TurtleArt.activity/TurtleArt/tajail.py", line 50, in myfunc_import
    return userdefined['myblock'](lc, x)
  File "<string>", line 40, in myblock
AttributeError: 'Turtle_blocks_plugin' object has no attribute 'update_label_value'

push mouse event
# Copy the following (less the # symbols) into TurtleArt to test

# [[0, ["start", 2.0], 620, 242, [null, 1]],
# [1, "forever", 620, 284, [0, 2, 17]],
# [2, ["userdefined", "/home/olpc/Activities/TurtleArt.activity/pysamples/push_mouse_event.py"], 703, 302, [1, 3, 4]],
# [3, ["number", 100], 761, 302, [2, null]],
# [4, "if", 703, 344, [2, 5, 8, 16]],
# [5, ["equal2", 0], 750, 310, [4, 6, 7, null]],
# [6, "pop", 796, 310, [5, null]],
# [7, ["number", 1.0], 796, 352, [5, null]],
# [8, "print", 764, 412, [4, 9, null]],
# [9, ["plus2", 0], 826, 412, [8, 10, 11]],
# [10, ["string", "x"], 880, 412, [9, null]],
# [11, ["plus2", 0], 880, 454, [9, 12, 13]],
# [12, "pop", 934, 454, [11, null]],
# [13, ["plus2", 0], 934, 496, [11, 14, 15]],
# [14, ["string", "y"], 988, 496, [13, null]],
# [15, "pop", 988, 538, [13, null]],
# [16, ["vspace", 0], 703, 430, [4, null]],
# [17, ["vspace", 0], 620, 320, [1, null]]]

push time
???? errors???
AttributeError: 'Turtle_blocks_plugin' object has no attribute 'update_label_value'

save heap to journal entry
[[0, ["start", 2.0], 263, 203, [null, 1]],
[1, "push", 263, 245, [0, 2, 3]],
[2, ["string", "this text gets saved as a journal entry"], 325, 245, [1, null]],
[3, "push", 263, 287, [1, 4, 5]],
[4, ["string", "this text too"], 325, 287, [3, null]],
[5, ["userdefined", "4030ec2c-05be-4e69-9ee3-f519139b02ee"], 263, 329, [3, 6, null]],
[6, ["string", "Title of journal entry"], 321, 329, [5, null]]]

set rgb
??
in myfunc_import
    return userdefined['myblock'](lc, x)
  File "<string>", line 41, in myblock
  File "<string>", line 37, in mod
NameError: free variable 'b' referenced before assignment in enclosing scope
??

sinewave.py
# Copy the following (less the # symbols) into TurtleArt to test
# [[0, ["start", 2.0], 207, 243, [null, 1]],
# [1, ["userdefined", "/home/olpc/Activities/TurtleArt.activity/pysamples/sinewave.py"], 207, 285, [0, 2, null]],
# [2, ["number", 1000.0], 265, 285, [1, null]]]

speak.py
# Copy the following (less the # symbols) into TurtleArt to test
# [[0, ["start", 2.0], 177, 240, [null, 1]],
# [1, ["userdefined", "/home/olpc/Activities/TurtleArt.activity/pysamples/speak.py"], 177, 282, [0, 2, null]],
# [2, ["string", "hello world"], 235, 282, [1, null]]]

uturn.py
[[0, ["start", 2.0], 289, 452, [null, 1]],
[1, ["userdefined", "668e9bd2-a02e-4000-a04e-0ff61f592313"], 289, 494, [0, 2, null]],
[2, ["number", 100.0], 347, 494, [1, null]]]