mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
new interface to find_byname()
This commit is contained in:
parent
eb9b8af8fc
commit
55d3ffa3c2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue