2 Jul 18:07
how to sort ListView by click on its column header?
Shoola <shula.amokshim <at> gmx.com>
2009-07-02 16:07:40 GMT
2009-07-02 16:07:40 GMT
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
-~----------~----~----~----~------~----~------~--~---
RSS Feed