diff options
author | Barry Warsaw <barry@python.org> | 1998-02-11 18:55:50 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1998-02-11 18:55:50 (GMT) |
commit | 55d3ffa3c205a4157f7f6f356a2a25b5c034e33a (patch) | |
tree | ce553403d4c39ea31d8840c36400edb81881cf3e | |
parent | eb9b8af8fc8aeca9d363196da6e39887a0992cfa (diff) | |
download | cpython-55d3ffa3c205a4157f7f6f356a2a25b5c034e33a.zip cpython-55d3ffa3c205a4157f7f6f356a2a25b5c034e33a.tar.gz cpython-55d3ffa3c205a4157f7f6f356a2a25b5c034e33a.tar.bz2 |
new interface to find_byname()
-rw-r--r-- | Tools/pynche/PyncheWidget.py | 2 |
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) |