Re: Link Gtk.ListStore to the real data

2018-06-02 Thread '-'
Swap items in your data_list in response to rows-reordered signal on the model? As for data_list, in your example you have multiple sources but the data_list is only one, so working on it makes sense. Could you try applying these suggestions to your example so we can see what doesn't work? On

Re: Link Gtk.ListStore to the real data

2018-06-02 Thread c.buhtz
On 2018-06-02 20:07 '-' wrote: > Can you make the data_list a field on your class? It's a list > with indices, right? Then, on the iter you get from your selection, > use gtk_tree_model_get_path and gtk_tree_path_get_indices. Finally > get the item from your data_list by that index. You mean e.

Re: Link Gtk.ListStore to the real data

2018-06-02 Thread Eric Cashon via gtk-app-devel-list
Try a relational database. Sqlite is an easy one to use. It can sort and save data to multiple tables. Use the list model and treeview to retrieve and view the data. That way the columns can be set up dynamically along with the renderer. Use SQL to update the database. Eric

Re: Link Gtk.ListStore to the real data

2018-06-02 Thread '-'
Hello. Can you make the data_list a field on your class? It's a list with indices, right? Then, on the iter you get from your selection, use gtk_tree_model_get_path and gtk_tree_path_get_indices. Finally get the item from your data_list by that index. On June 2, 2018 3:09:25 PM GMT+03:00,

Re: Link Gtk.ListStore to the real data

2018-06-02 Thread c.buhtz
Does no one has an idea? Am I the only one facing such problems? https://stackoverflow.com/q/50643938/4865723 On 2018-05-31 23:59 wrote: > I am looking for an elegant and pythonic way to connect the model of a > Gtk.ListStore (the content container for a Gtk.TreeView) to the real > data. > >