Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pysamples/paste_to_heap.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2011-03-21 19:53:04 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-03-21 19:53:04 (GMT)
commitfc4b6a64cc06bb35328835a382c14a8af542d20c (patch)
treef9bf8fcab89ab16489de05142d06d482b6df6bea /pysamples/paste_to_heap.py
parent1eede14372ceaaec094c55ca01f4c8f6dbfd0ab4 (diff)
FLAG DAY: passing TurtleWindow instead of LogoCode instance as 1st argument
Diffstat (limited to 'pysamples/paste_to_heap.py')
-rw-r--r--pysamples/paste_to_heap.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pysamples/paste_to_heap.py b/pysamples/paste_to_heap.py
index a7f67f9..eccd973 100644
--- a/pysamples/paste_to_heap.py
+++ b/pysamples/paste_to_heap.py
@@ -22,7 +22,7 @@
# palette is selected.
-def myblock(lc, x): # ignore second argument
+def myblock(tw, x): # ignore second argument
###########################################################################
#
@@ -36,5 +36,5 @@ def myblock(lc, x): # ignore second argument
text = Clipboard().wait_for_text()
if text is not None:
for val in data_from_string(text):
- lc.heap.append(val)
- lc.update_label_value('pop', val)
+ tw.lc.heap.append(val)
+ tw.lc.update_label_value('pop', val)