Triggering wx.EVT_COMBOBOX after programatically changing ComboBox selection?
As per the title, is there any way to programatically change the selected item in a ComboBox
and have it raise an event?
I am setting the selected item using myComboBox.SetSe开发者_开发百科lection(index)
, but this doesn't raise the wx.EVT_COMBOBOX
event.
I use C++ version of wxWidget. Look up documentation on these two functions:
void wxPostEvent(wxEvtHandler *dest, wxEvent& event) void AddPendingEvent(wxEvent& event)
精彩评论