PyDocs

Nav

Graphical user interfaces with Tk

askcolor

  • askcolor(color=None, **options)
Show a modal color-choosing dialog and return the chosen color. color is the color selected when the dialog opens. The return value is a tuple ((r, g, b), hexstr), where r, g and b are the red, green and blue components as integers in the range 0–255 and hexstr is the equivalent Tk color string, such as '#ff8000'. If the user cancels the dialog, (None, None) is returned.
Changed in 3.10
  • 3.10: The RGB values in the returned color are now integers in the range 0–255 instead of floats.
0 Examples
No examples for tkinter.colorchooser/askcolor.
See Also
No see-alsos for tkinter.colorchooser/askcolor
0 Notes
No notes for askcolor