disabled spinner background_color

8 views
Skip to first unread message

Mihály Mirk

unread,
Oct 17, 2016, 5:23:55 AM10/17/16
to Kivy users support
Hi all,

I'm trying to set the background color of the Spinner if disabled.

Here is what I tried in my kv-file:

<MySpinner@Spinner>:
background_normal: ''
background_disabled_normal: ''
disabled_color: (0, 0, 0, 1)
color: (0, 0, 0, 1)
background_disabled_color: (1,1,1,1)
background_color: (0.62,0.67,0.72,1)


obviously the  "background_disabled_color"  is not the right parameter. But what should I use instead?

Thank you for your help,
Mihaly

ZenCODE

unread,
Oct 17, 2016, 1:37:15 PM10/17/16
to Kivy users support
Try looking through this file. Here you can see how the default widgets are styled and override them appropriately...

https://github.com/kivy/kivy/blob/master/kivy/data/style.kv
Reply all
Reply to author
Forward
0 new messages