用wx.ComboBox()创建一个下拉框,怎么更新里面的Choices?
ComboBox(parent, id=ID_ANY, value="", pos=DefaultPosition,
size=DefaultSize, choices=[], style=0, validator=DefaultValidator,
name=ComboBoxNameStr)
在网上查了很久,终于找到,应该使用SetItems()方法,在wx.ItemContainer这个父类里面
self.combo.SetItems(YourList)
这样便可以更改下拉菜单的选项了