Sorting on on columns in wxpython?

2019-06-27 06:19发布

问题:

I'm creating a wxpython app that has a bunch of data that will be displayed in a grid. I'd like to be able to click on any column header and sort by that column. What's the best way to do this?

回答1:

There's an excellent example of grid sorting in the wxPython Grid_MegaExample demo.