]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
new interface to find_byname()
authorBarry Warsaw <barry@python.org>
Wed, 11 Feb 1998 18:55:50 +0000 (18:55 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 11 Feb 1998 18:55:50 +0000 (18:55 +0000)
Tools/pynche/PyncheWidget.py

index b6bd8f70318653879267f7629d37e262d39c944b..855c6f77120822091d7f3d0a381c7b70cf36dc89 100644 (file)
@@ -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)