Wxpython: wxgrid without vertical scrollbar

can remove automatic horizontal scrollbar in wxgrid?

+4
source share
2 answers

Unfortunately not. As I found in the mail archives from Robin Dunn, the wx developer and creator / maintainer of wxPython:

Although you can deactivate scrollbars using wx.Window and the wx.ScrolledWindow Methods regarding scrolling, the Grid class is reset at different points and they just come back. So there really is no way to turn off scrollbars, other than making the window large enough that they are not needed.

link

+4
source

show horizontal, hide vertical scrollbar:

grid_object.ShowScrollbars(wx.SHOW_SB_DEFAULT,wx.SHOW_SB_NEVER) 

hide horizontal and vertical scrollbar:

 grid_object.ShowScrollbars(wx.SHOW_SB_NEVER,wx.SHOW_SB_NEVER) 
+4
source

Source: https://habr.com/ru/post/1337801/


All Articles