本文介绍了冻结 wxgrid 中的几列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个窗口,它被拆分为在左侧面板上有一个自定义的树 ctrl,在右侧有一个网格表.现在我希望网格表以这样一种方式显示信息,即前几列冻结(不滚动),而其余数据可以选择水平滚动.我不知道如何继续,请帮助.我已经看到拆分窗口可以提供一些帮助,有人可以提供示例代码.

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.

推荐答案

没有内置的方法可以做到这一点.您需要使用网格并使它们保持同步.请参阅 https://groups.google.com/forum/?fromgroups#!topic/wxpython-users/Lbt5EW6sRDo

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

您也应该在 wxPython 邮件列表上询问.我发誓我在这个主题上看到过有人创建了某种解决方案,但我现在找不到了.

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.

这篇关于冻结 wxgrid 中的几列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 20:13
查看更多