Lines Matching refs:color
143 color = self.map[name]
145 color = colors[random.randrange(0, len(colors))]
146 print "Picking random color", color, "for", name
147 self.map[name] = color
148 self.table.append((name, color))
149 return (color)
214 def __init__(self, master, name, color):
221 self.color = StringVar()
222 self.color_default = color
223 self.color_current = color
224 self.color.set(color)
236 fill=self.color.get())
237 self.list = OptionMenu(self, self.color, command=self.setcolor,
248 def setcolor(self, color):
249 self.color.set(color)
250 self.sample.itemconfigure(self.rect, fill=color)
255 if (self.color_current != self.color.get()):
259 self.color_current = self.color.get()
288 color = graph.getcolor(type[0])
289 if (color != ""):
290 self.additem(type[0], color)
292 def additem(self, name, color):
293 item = ColorConf(self.items, name, color)
704 color = colormap.lookup(self.name)
707 fill=color, width=0,
724 color = colormap.lookup(self.name)
732 xpos + delta, ypos - 10, fill=color, width=0,
749 color = colormap.lookup("count")
761 xpos + delta, ypos, fill=color, width=0,
840 color = cpucolormap.lookup(cpu)
844 tox, ypos + canvas.bdheight, fill=color, width=0,
1270 def setcolor(self, tag, color):
1271 self.itemconfigure(tag, state="normal", fill=color)
1599 def setcolor(self, tag, color):
1600 self.display.setcolor(tag, color)