35
35
# make sure initialcolor is a tk color string
36
36
color = self.options["initialcolor"]
39
39
self.options["initialcolor"] = "#%02x%02x%02x" % color
43
43
def _fixresult(self, widget, result):
44
49
# to simplify application code, the color chooser returns
45
50
# an RGB tuple together with the Tk color string
48
51
r, g, b = widget.winfo_rgb(result)
49
return (r/256, g/256, b/256), result
52
return (r/256, g/256, b/256), str(result)