Re: TreeFilterModel and sorting



> I've just run into this problem (using pygtk).
>
> I'd like to have a liststore that is both sortable and filterable.
>
> In fact, I had such a beast, but I was using my own nasty hacks to
> implement the filtering.  I've had on my to-do list to switch to the
> TreeModelFilter + I've just tried that -- unfortunately it seems I can
> either have filtering or sorting, but not both.
>
> Am I missing some trick?

You can stack models

GtkListStore
GtkFilterStore
GtkSortStore

And use the Store are the model in the GtkTreeview

Stian



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]