Skip to content
Advertisement

Display Kivy Color Wheel only

I am writing an app that has a need for the Kivy Color Wheel (https://kivy.org/doc/stable/api-kivy.uix.colorpicker.html) to choose a color value to assign to different users. However, I intend for it to be used on a phone screen, and as such I do not need the various sliders and color codes that make up the second half of the widget – simply tapping the desired colour is sufficient. I know that there is a question very similar to this that is answered, however this does not account for the .kv language that I am using in my program.

This is my .kv code:

JavaScript

and my .py file:

JavaScript

Could anybody help? Thanks in advance

Advertisement

Answer

Try using ColorWheel instead. You can use it in the kv as:

JavaScript

And the color_selected() method:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement