Changes

Jump to navigation Jump to search
Line 197: Line 197:  
Copy the following code into Pippy
 
Copy the following code into Pippy
   −
[[File:TA copy clipboard.jpg]]
+
def myblock(lc, x):
 +
    from gtk import Clipboard
 +
    from tautils import data_to_string
 +
    Clipboard().set_text(data_to_string(lc.heap))
 +
  , 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.

Navigation menu