Best widget for displaying sortable pairs of numbers

I'd like some advice on the most suitable and simplest widget to use
when I want to display pairs of numbers that I can then sort by
ascending/descending magnitude of either column.
Ie: I have a list of frequency & magnitude numbers. I want to display
them as 2 columns. I then need to be able to click on either the
frequency column or the magnitude column and have the rows be sorted
appropriately.

wx.ListCtrl or wx.lib.agw.UltimateListCtrl look pretty much OK for
that job. The wxPython demo also shows you how to integrate them with
ColumnSorterMixin to seamlessly sort stuff in different columns.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

On 6 April 2012 20:45, Jonno wrote:

I'd like some advice on the most suitable and simplest widget to use
when I want to display pairs of numbers that I can then sort by
ascending/descending magnitude of either column.
Ie: I have a list of frequency & magnitude numbers. I want to display
them as 2 columns. I then need to be able to click on either the
frequency column or the magnitude column and have the rows be sorted
appropriately.

You might also want to look at the DVC_* controls in the demo.

Werner

···

On 06/04/2012 20:52, Andrea Gavana wrote:

On 6 April 2012 20:45, Jonno wrote:

I'd like some advice on the most suitable and simplest widget to use
when I want to display pairs of numbers that I can then sort by
ascending/descending magnitude of either column.
Ie: I have a list of frequency& magnitude numbers. I want to display
them as 2 columns. I then need to be able to click on either the
frequency column or the magnitude column and have the rows be sorted
appropriately.

wx.ListCtrl or wx.lib.agw.UltimateListCtrl look pretty much OK for
that job. The wxPython demo also shows you how to integrate them with
ColumnSorterMixin to seamlessly sort stuff in different columns.