Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

No, it is not impossible. In fact, it is a common practice to populate a spinner in a .kv file using a list in a .py file. Here's an example:

In your .py file, define a list:

fruits = ['apple', 'banana', 'orange']

In your .kv file, create a spinner and set its values to the list:

Spinner:
    values: root.fruits

Make sure to prefix the list name with "root." to access it from the .kv file.