Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pysamples/set_rgb.py
diff options
context:
space:
mode:
Diffstat (limited to 'pysamples/set_rgb.py')
-rw-r--r--pysamples/set_rgb.py4
1 files changed, 2 insertions, 2 deletions
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)