summaryrefslogtreecommitdiffstats
path: root/Tools/pynche/PyncheWidget.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1998-02-11 18:55:50 (GMT)
committerBarry Warsaw <barry@python.org>1998-02-11 18:55:50 (GMT)
commit55d3ffa3c205a4157f7f6f356a2a25b5c034e33a (patch)
treece553403d4c39ea31d8840c36400edb81881cf3e /Tools/pynche/PyncheWidget.py
parenteb9b8af8fc8aeca9d363196da6e39887a0992cfa (diff)
downloadcpython-55d3ffa3c205a4157f7f6f356a2a25b5c034e33a.zip
cpython-55d3ffa3c205a4157f7f6f356a2a25b5c034e33a.tar.gz
cpython-55d3ffa3c205a4157f7f6f356a2a25b5c034e33a.tar.bz2
new interface to find_byname()
Diffstat (limited to 'Tools/pynche/PyncheWidget.py')
-rw-r--r--Tools/pynche/PyncheWidget.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/pynche/PyncheWidget.py b/Tools/pynche/PyncheWidget.py
index b6bd8f7..855c6f7 100644
--- a/Tools/pynche/PyncheWidget.py
+++ b/Tools/pynche/PyncheWidget.py
@@ -53,7 +53,7 @@ class PyncheWidget(Pmw.MegaWidget):
def set_color(self, obj, rgbtuple):
print 'setting color to:', rgbtuple
nearest = self.__colordb.nearest(rgbtuple)
- red, green, blue, rrggbb = self.__colordb.find_byname(nearest)
+ red, green, blue = self.__colordb.find_byname(nearest)
# for an exact match, use the color name
if (red, green, blue) == rgbtuple:
self.__selected.configure(color=nearest)