☰
Debian Codegraph
@
1.6.2-2
/
/
examples
/
listmodel.py
☽
☼
examples/listmodel.py
code
plain
raw
symbols
SCIP
ISC
2011, 2013-2024 Thomas Perl <
[email protected]
>; 2014 Dennis Tomas <
[email protected]
>; 2014 Felix Krull <
[email protected]
>
debian/copyright
1
# Example how to fill a list model with data from Python.
2
def
get_data
():
3
return
[
4
{
'name'
:
'Alpha'
,
'team'
:
'red'
},
5
{
'name'
:
'Beta'
,
'team'
:
'blue'
},
6
{
'name'
:
'Gamma'
,
'team'
:
'green'
},
7
{
'name'
:
'Delta'
,
'team'
:
'yellow'
},
8
{
'name'
:
'Epsilon'
,
'team'
:
'orange'
},
9
]