我希望我的 wx.ListCtrl 的 ScrollBar 会在新项目添加到列表中并且 ScrollBar 变长时自动下降。这就是我创建 wx.ListCtrl 的方式
import wx
app = wx.App()
frame = wx.Frame(None, -1, title='2', pos=(0, 0), size=(500, 500))
frame.Show(True)
app.SetTopWindow(frame)
message_list = wx.ListCtrl(frame, size=(200, 200), pos=(0, 0),
style=wx.LC_REPORT | wx.BORDER_SUNKEN)
message_list.InsertColumn(0, 'Chat: ', width=150)
for i in range(15):
message_list.InsertItem(i, "name" + str(i))
### I want that after this loop, the scroll bar will be at the end of the list (Name 14)
app.MainLoop()