is posible remove the automatic horizontal scrollbar in a wxgrid?
show horizontal, hide vertical scroll bar:
grid_object.ShowScrollbars(wx.SHOW_SB_DEFAULT,wx.SHOW_SB_NEVER)
hide horizontal and vertical scroll bar:
grid_object.ShowScrollbars(wx.SHOW_SB_NEVER,wx.SHOW_SB_NEVER)
Unfortunately, no. As I found in the mailing archives from Robin Dunn, wx developer and wxPython creator/maintainer:
Although you can deactivate the scrollbars by using the wx.Window and wx.ScrolledWindow methods dealing with scrolling, the Grid class resets itself at various points and they just come back. So there really isn't any way to disable the scrollbars, other than making the window large enough that they are not needed.
reference
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With