/external/python/cpython2/Tools/pynche/ |
D | Main.py | 95 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 …]
|
D | ColorDB.py | 180 colordb = None 199 colordb = class_(fp) 204 DEFAULT_DB = colordb 205 return colordb 252 colordb = get_colordb('/usr/openwin/lib/rgb.txt') variable 253 if not colordb: 258 red, green, blue = rgbtuple = colordb.find_byname(target) 260 name, aliases = colordb.find_byrgb(rgbtuple) 268 nearest = colordb.nearest(r, g, b) 272 for n in colordb.unique_names(): [all …]
|
D | pyColorChooser.py | 30 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]
|
D | ListViewer.py | 71 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
|
D | Switchboard.py | 93 def colordb(self): member in Switchboard 96 def set_colordb(self, colordb): argument 97 self.__colordb = colordb 100 v.colordb_changed(colordb)
|
D | ChipViewer.py | 105 colordb = self.__sb.colordb() 109 nearest = colordb.nearest(red, green, blue) 110 nearest_tuple = colordb.find_byname(nearest)
|
D | PyncheWidget.py | 170 idir, ifile = os.path.split(self.__sb.colordb().filename()) 181 colordb = ColorDB.get_colordb(file) 187 if colordb is None: 193 self.__sb.set_colordb(colordb)
|
D | TextViewer.py | 159 red, green, blue = self.__sb.colordb().find_byname(color)
|
/external/python/cpython3/Tools/pynche/ |
D | Main.py | 95 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 …]
|
D | ColorDB.py | 176 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 …]
|
D | pyColorChooser.py | 30 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]
|
D | ListViewer.py | 71 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
|
D | Switchboard.py | 92 def colordb(self): member in Switchboard 95 def set_colordb(self, colordb): argument 96 self.__colordb = colordb 99 v.colordb_changed(colordb)
|
D | ChipViewer.py | 105 colordb = self.__sb.colordb() 109 nearest = colordb.nearest(red, green, blue) 110 nearest_tuple = colordb.find_byname(nearest)
|
D | PyncheWidget.py | 169 idir, ifile = os.path.split(self.__sb.colordb().filename()) 180 colordb = ColorDB.get_colordb(file) 186 if colordb is None: 192 self.__sb.set_colordb(colordb)
|
D | TextViewer.py | 159 red, green, blue = self.__sb.colordb().find_byname(color)
|