在python中用wxGrid 模块写出来的grid ,有很多列,要冻结第一列怎么办呢??

Python018

在python中用wxGrid 模块写出来的grid ,有很多列,要冻结第一列怎么办呢??,第1张

帮你搜了,答案是:

没有现成的,wxGrid本身不支持的。

所以,只能靠你自己实现。

网上能找到的一个,唯一的一个,建议是:

One approach to take would be to put two grids in a splitter window, have them use the same table object and set the grid in the lower side of the splitter to not show the column headers. You'll then probably need to synchronize the column widths, horizontal scrollbars, etc.

你自己去试试吧。

你知道EXCEL里的冻结窗口什么意思吧!在access中冻结列的意思和它基本一样!锁定所选定的列,将该列提前到第一列,当表的列数超过一面时,拉动下边的滚动条,第一列不动,第二列以后各列的数据随着滚动条向右拉动,变得不可见