I am trying to implement basic autocomplete for a comboCtrl. The text entry field for a ComboCtrl is made from a wx.TextEntry base class, which I see has an AutoComplete() method as of about wx2.9. Good.
But, it seems that using this AutoComplete() method somehow causes the wx.EVT_TEXT_ENTER event that I
bind to the ComboCtrl to be ignored. Binding that event to the ComboCtrl’s wx.TextEntry itself doesn’t work, either. This is not good, because I want the user to be able to use the Enter key to “finalize” the selection and
act on it (which is a common need in most GUIs, such as in a Firefox’s “awesome bar” and all URL bars in browsers, where hitting Enter causes you to go to that page).
See the attached runnable sample for a demonstration of this issue. Any ideas on how to work around this?
Thanks,
Che
testing_comboCtrl_autocomplete.py (2.29 KB)