Reputation: 4548
Is there anyway to set the grid position using a function other than Scroll. Scroll function won't do anything if Grid Scrollbars are set to to wx.SHOW_SB_NEVER.
import wx
import wx.grid as gridlib
grid = gridlib.Grid(parent, wx.ID_ANY)
grid.ShowScrollbars(wx.SHOW_SB_NEVER,wx.SHOW_SB_NEVER)
# now Scroll method won't work anymore and scrolling to certain position does nothing
grid.Scroll(100,100) # it does nothing anymore.
The same way there is grid.GetViewStart() method, is there anything or any turnaround to Scroll or something like grid.SetViewStart ...
thanks
Upvotes: 1
Views: 761
Reputation: 1987
I think using something like MakeCellVisible()
may be a better choice, rather than the arbitrary Scroll()
Upvotes: 1