[pygtk] make a ListStore to sort itself

Florian Diesch diesch at spamfence.net
Sat Jan 13 10:27:34 WST 2007


Hi!

I have a sorted ListStore containing values that change themself. After
a change I want to sort it again.

So far I'm doing it by calling set_sort_column_id() with a different
sort_column_id or order and then calling it again with the right values.

Is there a better way? 

Calling row_changed() or sort_column_changed() doesn't work and using
set(), remove() etc. is difficult as the values don't know to which row
they belong.



   Florian
-- 
<http://www.florian-diesch.de/>


More information about the pygtk mailing list