Hi, I'm struggeling with the tableview and the gui designer..
How to connect the tableview with the data?
I try to make a simple list, where you could add items via a textfield and an add-button.
But I'm stuck with the tableview.
I have a ListViewSimple2.py, containing the data:
import ui
data =['spam', 'ham', 'egg']
datasource = ui.ListDataSource(data)
view = ui.load_view('ListViewSimple2')
view.delegate = datasource
nav = ui.NavigationView(view)
nav.present()
And I have a ListViewSimple2.pyui, containing a tableview( + a button and a textfield).
What do I have to do to make the tableview show my data?
I set the TableViews DATASOURCE to datasource, but that seems not to be correct.
But how to do it right?
Maybe someone could push me in the right direction?
Thanks very much in advance