mirror of
https://github.com/thp/pyotherside.git
synced 2025-02-05 08:08:23 +08:00
10 lines
313 B
Python
10 lines
313 B
Python
# Example how to fill a list model with data from Python.
|
|
def get_data():
|
|
return [
|
|
{'name': 'Alpha', 'team': 'red'},
|
|
{'name': 'Beta', 'team': 'blue'},
|
|
{'name': 'Gamma', 'team': 'green'},
|
|
{'name': 'Delta', 'team': 'yellow'},
|
|
{'name': 'Epsilon', 'team': 'orange'},
|
|
]
|