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/push_time.py') diff --git a/pysamples/push_time.py b/pysamples/push_time.py index 2abf260..ed823ee 100644 --- a/pysamples/push_time.py +++ b/pysamples/push_time.py @@ -22,7 +22,7 @@ # palette is selected. -def myblock(lc, x): # ignore second argument +def myblock(tw, x): # ignore second argument ########################################################################### # @@ -33,6 +33,6 @@ def myblock(lc, x): # ignore second argument # ########################################################################### - lc.heap.append(localtime().tm_hour) - lc.heap.append(localtime().tm_min) - lc.heap.append(localtime().tm_sec) + tw.lc.heap.append(localtime().tm_hour) + tw.lc.heap.append(localtime().tm_min) + tw.lc.heap.append(localtime().tm_sec) -- cgit v0.9.1