Activities/Turtle Art/Using Turtle Art Sensors: Difference between revisions

Tonyforster (talk | contribs)
Tonyforster (talk | contribs)
Line 215: Line 215:
     from tautils import data_to_string
     from tautils import data_to_string
     Clipboard().set_text(data_to_string(lc.heap))
     Clipboard().set_text(data_to_string(lc.heap))
  , return
    return


Save to the journal, then in Turtle Art, load the Pippy code [[File:TAPippyButton.svg|30px]] into the Python Code Block [[File:Pythoncodeblock.jpg|50px]]. When the Python Code Block is executed, the contents of the heap are placed on the clipboard.
Save to the journal, then in Turtle Art, load the Pippy code [[File:TAPippyButton.svg|30px]] into the Python Code Block [[File:Pythoncodeblock.jpg|50px]]. When the Python Code Block is executed, the contents of the heap are placed on the clipboard.