How to make auto scrolling wx.grid table?
问题 python 2.7 I have wx.grid table. How can I do vertical scrolling? I tried: MakeCellVisible(rows,cols) and SetGridCursor(rows, cols) but they didn't work. 回答1: Use: grid_widget.Scroll(row, column) Edit: Here you have a working example: That was produced with: import wx import wx.grid as grid # class Button(wx.Frame): def __init__(self, parent, source): wx.Frame.__init__(self, parent, -1, size=(100,100)) self.source = source self.pos = 0 self.button = wx.Button(self, label='0') self.Bind(wx.EVT