"Volker Helm" <[EMAIL PROTECTED]> wrote:

>> 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.
>
> just use gtk.TreeModelSort(model).
>
> There is an example in the tutorial
> http://www.pygtk.org/pygtk2tutorial/sec-TreeModelSortAndTreeModelFilter.html
>
> Hope that will help,
>

I don't understand how to do it as I can't tell TreeModelSort to resort
itself or its  child model.

But I can use set_sort_func() to resort the ListStore which works for
me.


   Florian
-- 
<http://www.florian-diesch.de/>
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to