问题
I have a window that is split to have a custom tree ctrl on left panel and a grid table on the right. Now I want the grid table to display the information in such a way that first few columns freeze (not scroll) while the remaining data has an option to scroll horizontally. I have no clue how to proceed, please help. I have seen that splitter window can be of some help, can someone provide a sample code.
回答1:
There is no built-in way to do that. You would need to use grids and keep them kind of synced. See https://groups.google.com/forum/?fromgroups#!topic/wxpython-users/Lbt5EW6sRDo
You should ask on the wxPython mailing list too. I swear I saw something on this topic where someone had created some kind of solution, but I can't find it now.
来源:https://stackoverflow.com/questions/11628835/freeze-few-column-in-wxgrid