Re: clear() on TreeView causes select-events

2018-07-15 Thread c.buhtz--- via gtk-app-devel-list
Dear Reuben, thanks for your answer. > And after you study the MVC pattern, you will see why the whole > Treeview stack works the way it does. Google MVC and Gtk MVC. It is > worthwhile reading if you plan on constructing treeviews. It may not > make sense immediately, but eventually you may see

Re: clear() on TreeView causes select-events

2018-07-09 Thread Reuben Rissler
I have had very similar experiences with liststore.clear() in Python3.5 and Mint 18. To work around this I do: store = treeview.get_model() #may not be necessary in your code treeview.set_model(None) store.clear() store.append('my string or etc') treeview.set_model(store) This works.

Re: clear() on TreeView causes select-events

2018-07-06 Thread c.buhtz--- via gtk-app-devel-list
Dear Reuben, thanks for your hint. On 2018-07-03 21:19 Reuben Rissler wrote: > I have had very similar experiences with liststore.clear() in > Python3.5 and Mint 18. To work around this I do: > > store = treeview.get_model() #may not be necessary in your code > treeview.set_model(None) >

Re: clear() on TreeView causes select-events

2018-07-03 Thread Reuben Rissler
On 07/03/2018 05:30 PM, c.buhtz--- via gtk-app-devel-list wrote: Hello I observer an interesting behavior (PyGObject, Gtk3.0, Python3.6, Debian unstable with XFCE desktop): An item (row) in a TreeView is selected (highlighted). Then calling .clear() on the TreeView causes an select-event for