[pygtk] remove liststore sorting

Bertrand Son Kintanar b3rxkintanar at gmail.com
Thu Jul 23 20:05:33 WST 2009


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<http://library.gnome.org/devel/pygtk/stable/class-gtktreemodel.html>implementing
the
gtk.TreeSortable<http://library.gnome.org/devel/pygtk/stable/class-gtktreesortable.html>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<http://library.gnome.org/devel/pygtk/stable/class-gtktreemodel.html>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.'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20090723/d81226c6/attachment.htm 


More information about the pygtk mailing list