From 4739976d0a96eb21b8f606c69ecc09ca7a1557de Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Tue, 08 Nov 2011 00:12:29 +0000 Subject: Merge commit 'refs/merge-requests/3' of git://git.sugarlabs.org/turtleart/mainline into integration Conflicts: NEWS activity/activity.info --- (limited to 'pysamples') diff --git a/pysamples/set_rgb.py b/pysamples/set_rgb.py index d4baa48..b77d9df 100644 --- a/pysamples/set_rgb.py +++ b/pysamples/set_rgb.py @@ -13,7 +13,6 @@ def myblock(tw, rgb_array): ''' Set rgb color from values ''' - rgb = "#%02x%02x%02x" % ((int(rgb_array[0]) % 256), - (int(rgb_array[1]) % 256), - (int(rgb_array[2]) % 256)) - tw.canvas.fgcolor = tw.canvas.cm.alloc_color(rgb) + tw.canvas.fgrgb = [(int(rgb_array[0]) % 256), + (int(rgb_array[1]) % 256), + (int(rgb_array[2]) % 256)] -- cgit v0.9.1