仅在 wxgrid 上删除水平网格线
在wxwidgets文档上,我只发现EnableGridLines设置为false,删除水平线和垂直线,我希望只删除网格上的水平线。有没有可能的方法来做到这一点?
On the wxwidgets docs, I only found the EnableGridLines, which is set to false, removes both the horizontal and vertical lines, what I wish, is to remove only the horizontal lines on the grid. Is there a possible way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我所知,你要么拥有所有的台词,要么没有。不过,请随意尝试在 wxPython 邮件列表上交叉发帖以确保双重确定。
As far as I can tell, you either have all the lines or none of them. Feel free to try cross-posting on the wxPython mailing list to make doubly sure though.
我同意迈克的观点。不幸的是 wx.grid.Grid.Get[Col|Row]GridLinePen() 没有挂钩到 wxPython 级别,因此您无法在代码中覆盖这些函数。我一直希望返回 None 会导致这条线不被绘制。
I agree with Mike. Unfortunately wx.grid.Grid.Get[Col|Row]GridLinePen() isn't hooked to the wxPython level, so you can't override those functions in your code. I had been hopeful that returning None would result in the line not being drawn.