How to change text color of selected item in ListView and keep the color after choose another item?

79 views
Skip to first unread message

Alexey Kostylev

unread,
Nov 4, 2017, 2:10:02 PM11/4/17
to Kivy users support
The task looks simple - desktop app, list with four buttons aside (first, second, third and no priority). Pressing the buttons change text color of selected list item (r/g/b/default ) and the color remains after selection gone. How to

1. Change single list item color and keep it?
2. Read the color, set previously for future output formatting?

Was done by me in tk\PAGE builder. However, I want to try kivy and rebuild existing app using it. Please, advice.

 

ZenCODE

unread,
Nov 4, 2017, 6:32:38 PM11/4/17
to Kivy users support
Try looking at the "https://github.com/kivy/kivy/tree/master/examples/widgets/lists/list_two_up.py" example. That seems to do what you require? Thanks

Alexey Kostylev

unread,
Nov 5, 2017, 6:36:49 AM11/5/17
to kivy-...@googlegroups.com
Thanks! Looks like, that it's the thing, I need 2 do. Will try to arrange this in mind.

воскресенье, 5 ноября 2017 г., 1:32:38 UTC+3 пользователь ZenCODE написал:
Reply all
Reply to author
Forward
0 new messages