Are you sorting the columns individually, or are your looking for
the “click the heading and sort the table on that field”
functionality. If the latter, check out
wx.lib.mixins.listctrl.ColumnSorterMixin
···
On 5/3/2014 1:58 PM, J Mac wrote:
I have a grid of about 12 columns, most of them are
numbers. I’m looking to sort all of the number columns. Is there
an easy approach to this?
I think I'll turn the entire grid into a list of lists, then use
lambda to sort, then refill the grid. Is that the best way?
–
You received this message because you are subscribed to the Google
Groups “wxPython-users” group.
To unsubscribe from this group and stop receiving emails from it,
I have a grid of about 12 columns, most of them are numbers. I'm looking to sort all of the number columns. Is there an easy approach to this?
For more options, visit https://groups.google.com/d/optout.Are you sorting the columns individually, or are your looking for the "click the heading and sort the table on that field" functionality. If the latter, check out wx.lib.mixins.listctrl.ColumnSorterMixin
Oh thanks! I managed to read the contents of the post without reading the subject line.
(I was thinking a listbox with columns forms a grid, and I have used this sorter mixin before)
···
On Sunday, May 4, 2014 5:11:56 AM UTC-4, Karsten Hilbert wrote:
On 5/3/2014 1:58 PM, J Mac wrote:
I have a grid of about 12 columns, most of them are numbers. I’m looking to sort all of the number columns. Is there an easy approach to this?
For more options, visit https://groups.google.com/d/optout[https://groups.google.com/d/optout].Are you sorting the columns individually, or are your looking for the “click the heading and sort the table on that field” functionality. If the latter, check out wx.lib.mixins.listctrl.ColumnSorterMixin