From 11e88c07cfa97933ac17dddbabb7e8bce1fbb07a Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Tue, 02 Mar 2010 08:23:29 +0000 Subject: moving color to canvas --- (limited to 'tamyblock.py') diff --git a/tamyblock.py b/tamyblock.py index 6627066..a90995a 100644 --- a/tamyblock.py +++ b/tamyblock.py @@ -51,7 +51,7 @@ def myblock(lc, x): # while b > 255: # b -= 256 # rgb = "#%02x%02x%02x" % (r,g,b) - # lc.tw.fgcolor = lc.tw.cm.alloc_color(rgb) + # lc.tw.canvas.fgcolor = lc.tw.canvas.cm.alloc_color(rgb) # return ########################################################################### @@ -120,7 +120,7 @@ def myblock(lc, x): # b = int((val*(100-x) + lc.tw.rgb[2]*x)/100) # reallocate current color # rgb = "#%02x%02x%02x" % (r,g,b) - # lc.tw.fgcolor = lc.tw.cm.alloc_color(rgb) + # lc.tw.canvas.fgcolor = lc.tw.canvas.cm.alloc_color(rgb) # return ########################################################################### -- cgit v0.9.1