Home
last modified time | relevance | path

Searched refs:colordb (Results 1 – 8 of 8) sorted by relevance

/third_party/python/Tools/pynche/
DMain.py95 def initial_color(s, colordb): argument
97 def scan_color(s, colordb=colordb): argument
99 r, g, b = colordb.find_byname(s)
132 colordb = None
136 while colordb is None:
138 colordb = ColorDB.get_colordb(dbfile)
141 if colordb is None:
145 if not colordb:
147 s.set_colordb(colordb)
168 red, green, blue = initial_color('grey50', colordb)
[all …]
DColorDB.py176 colordb = None
195 colordb = class_(fp)
200 DEFAULT_DB = colordb
201 return colordb
247 colordb = get_colordb('/usr/openwin/lib/rgb.txt') variable
248 if not colordb:
253 red, green, blue = rgbtuple = colordb.find_byname(target)
255 name, aliases = colordb.find_byrgb(rgbtuple)
263 nearest = colordb.nearest(r, g, b)
267 for n in colordb.unique_names():
[all …]
DpyColorChooser.py30 colordb = None
32 colordb = ColorDB.get_colordb(dbfile)
44 if colordb:
45 self.__sb.set_colordb(colordb)
47 colordb = self.__sb.colordb()
49 r, g, b = Main.initial_color(color, colordb)
65 name = colordb.find_byrgb(rgbtuple)[0]
DListViewer.py71 colordb = self.__sb.colordb()
76 for name in colordb.unique_names():
77 exactcolor = ColorDB.triplet_to_rrggbb(colordb.find_byname(name))
152 aliases = self.__sb.colordb().aliases_of(red, green, blue)[1:]
173 def colordb_changed(self, colordb): argument
DSwitchboard.py92 def colordb(self): member in Switchboard
95 def set_colordb(self, colordb): argument
96 self.__colordb = colordb
99 v.colordb_changed(colordb)
DChipViewer.py105 colordb = self.__sb.colordb()
109 nearest = colordb.nearest(red, green, blue)
110 nearest_tuple = colordb.find_byname(nearest)
DPyncheWidget.py165 idir, ifile = os.path.split(self.__sb.colordb().filename())
176 colordb = ColorDB.get_colordb(file)
182 if colordb is None:
188 self.__sb.set_colordb(colordb)
DTextViewer.py159 red, green, blue = self.__sb.colordb().find_byname(color)