[pygtk] remove liststore sorting

Imre Horvath blemidon at gmail.com
Thu Jul 23 20:31:00 WST 2009


Thank you, I try to make it work with a custom sort function...

Imre Horvath

On Thu, 2009-07-23 at 20:05 +0800, Bertrand Son Kintanar wrote:
> 
> 
> On Thu, Jul 23, 2009 at 7:44 PM, Imre Horvath <blemidon at gmail.com>
> wrote:
>         Hi!
>         
>         I've got a ListStore model, which is sorted:
>         model.set_sort_column_id(0, gtk.SORT_ASCENDNIG)
>         
>         how can i remove the sorting when it's already set, and i want
>         to
>         display the unsorted data?
>         
>         Thanks in advance:
>         Imre Horvath
> no dice... from PyGTK reference manual.
> 
> 
> Once a sort column ID has been set on a gtk.TreeModel implementing the
> gtk.TreeSortable interface it cannot be returned to the original
> unsorted state. You can change the sort function or use a default sort
> function but you cannot set the gtk.TreeModel to have no sort
> function.
> 
> 
> 
> 
> -- 
> b3rx
> 
> "Don't be trapped by dogma - which is living with the results of other
> people's thinking. - Steve Jobs"
> 
> `There are only 10 types of people in the world — those who understand
> binary, and those who don't.'



More information about the pygtk mailing list