ttkwidgets.color¶
Functions
-
ttkwidgets.color.
askcolor
(color='red', parent=None, title='Color Chooser', alpha=False)[source]¶ Open a ColorPicker dialog and return the chosen color.
Returns: the selected color in RGB(A) and hexadecimal #RRGGBB(AA) formats. (None, None) is returned if the color selection is cancelled.
Parameters: - color (sequence[int] or str) – initially selected color (RGB(A), HEX or tkinter color name)
- parent (widget) – parent widget
- title (str) – dialog title
- alpha (bool) – whether to display the alpha channel
Classes
AlphaBar |
Bar to select alpha value. |
ColorPicker |
Color picker dialog. |
ColorSquare |
Square color gradient with selection cross. |
GradientBar |
HSV gradient colorbar with selection cursor. |