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/set_rgb.py') diff --git a/pysamples/set_rgb.py b/pysamples/set_rgb.py index 0a556fe..f0f70ee 100644 --- a/pysamples/set_rgb.py +++ b/pysamples/set_rgb.py @@ -23,7 +23,7 @@ # palette is selected and expanded to 3 arguments. -def myblock(lc, rgb_array): +def myblock(tw, rgb_array): ########################################################################### # @@ -42,4 +42,4 @@ def myblock(lc, rgb_array): g = mod(int(rgb_array[1])) r = mod(int(rgb_array[0])) rgb = "#%02x%02x%02x" % (r, g, b) - lc.tw.canvas.fgcolor = lc.tw.canvas.cm.alloc_color(rgb) + tw.canvas.fgcolor = tw.canvas.cm.alloc_color(rgb) -- cgit v0.9.1