I used to use Glade and Treeview, and my data for the TreeView was stored in an sqlite3 database. It was simple.
Create ListStore with a bunch of columns.
Create Treeview, set model as the ListStore
Create the TreeViewColumns, each with a renderer that is set to the appropriate ListStore column.
Then, in Python it was a simple matter of connecting to the sqlite3 database and…
record = fetchall()
for row in record… liststore.append().
ColumnView… I’ve spent 30-40hrs over the past 4 days and I haven’t achieved anything.
Please could someone at least just explain what I’m supposed to be doing as raw as I described Glade/TreeView?
There are two links that have helped a lot but they are written purely in Python (which is what I’m using) and don’t include a .ui file.
I want to do as much as possible in a .ui file so each time I refresh the ColumnView it can be as short and simple as how I did Glade/TreeView.
Using .ui, I’ve added a ScrolledWindow, ColumnView, SingleSelection, GListStore, ColumnViewColumns, and setup and bind signals. The ColumnView shows up along with the column names but I can’t fill the columns. I’m not trying to use sqlite at this stage, BTW!
All examples I’ve found are written purely in Python. Is this the only way and am I trying to do something that won’t be possible?