From fc4b6a64cc06bb35328835a382c14a8af542d20c Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 21 Mar 2011 19:53:04 +0000 Subject: FLAG DAY: passing TurtleWindow instead of LogoCode instance as 1st argument --- (limited to 'pysamples/paste_to_heap.py') 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) -- cgit v0.9.1