t1 = wx.ComboBox(panel,-1, value='', choices=namess_list,
style=wx.CB_DROPDOWN)
应该是用 t1.GetValue() 可以取到值, 可以考虑给 t1 加个事件
大概如此
self.t1 = wx.ComboBox(panel,-1, value='', choices=namess_list,
style=wx.CB_DROPDOWN)
self.t1.Bind(wx.EVT_COMBOBOX, self.OnCombo)
def OnCombo(self, event):
print("selected "+ self.t1.GetValue() +" from Combobox")