Table Of Contents
ColorPicker widget¶
New in version 1.7.0.
Warning
This widget is experimental. Its use and API can change any time, until this warning is removed.
The ColorPicker widget allows a user to pick a color utilizing from a chromatic wheel where pinch/zoom can be used to change available colors or using a slider or directly entering the colors in the text boxes.
- class kivy.uix.colorpicker.ColorPicker(**kwargs)¶
Bases: kivy.uix.relativelayout.RelativeLayout
See module documentation.
- color¶
The color holds the color currently selected in rgba format.
color is an ListProperty defaults to (1, 1, 1, 1)
- font_name¶
Specifies the font used used on the Color Picker
font_name is an StringProperty defaults to ‘data/fonts/DroidSansMono.ttf’
- hex_color¶
The :data:`hex_color ` holds the currently selected color in hex.
hex_color is a AliasProperty default to #ffffffff
- hsv¶
The hsv holds the color currently selected in hsv format.
hsv is an ListProperty defaults to (1, 1, 1)
- wheel¶
The :data:`wheel ` holds the color wheel.
wheel is an ObjectProperty defaults to None
- class kivy.uix.colorpicker.ColorWheel(**kwargs)¶
Bases: kivy.uix.widget.Widget
Chromatic wheel for the ColorPiker.
- a¶
The Alpha value of the color currently selected.
r is an BoundedNumericProperty can be a value from 0 to 1.
- b¶
The Blue value of the color currently selected.
b is an BoundedNumericProperty can be a value from 0 to 1.
- color¶
The holds the color currently selected.
color is an ReferenceListProperty a list of r, g, b, a.
- g¶
The Green value of the color currently selected.
g is an BoundedNumericProperty can be a value from 0 to 1
- r¶
The Red value of the color currently selected.
r is an BoundedNumericProperty can be a value from 0 to 1 default to 0.