Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tamyblock.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2010-03-02 08:23:29 (GMT)
committer Walter Bender <walter@sugarlabs.org>2010-03-02 08:23:29 (GMT)
commit11e88c07cfa97933ac17dddbabb7e8bce1fbb07a (patch)
tree4e54d7f203b5ae983f7b28780f2cfac8c83c77c4 /tamyblock.py
parent391fb28b9b6d01679c10c8f978baf560003b8014 (diff)
moving color to canvas
Diffstat (limited to 'tamyblock.py')
-rw-r--r--tamyblock.py4
1 files changed, 2 insertions, 2 deletions
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
###########################################################################