Shoola | 2 Jul 18:07
Picon
Favicon

how to sort ListView by click on its column header?


I have an app with wx.ListView object on it, containing 4 columns.

I'd like to have the table sorted when a user clicks the column title.

    def OnListView1ListColClick(self, event):
        col = event.GetColumn()
        self.sort_results(col)

    def sort_results(self, col):

        ... ok, now what?

i found self.listView1.SortItems(self.sorttable),
but i can't find documentation on how to use it,
and how to apply it to a particular column.

Thanks!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To post to this group, send email to wxPython-users <at> googlegroups.com
To unsubscribe from this group, send email to wxPython-users+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/wxPython-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Gmane