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:
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)