Walter Igo wrote:
I have modified textCtrlAutocomplete.py file that I have found on wxpython site. It works well for selecting the words and creating a dropdown list. But when I try to get it to go on to the next word in the sentence it will not pick up on the fact that I want it to start the process again like autocomplete on most word processors. I will include the source code as I have it now.
I took a quick look at the code and it looks like it is looking at the entire value of the text ctrl to look for matches in the list. So once you match and select the first word, when you type some more it is going to be looking for a match that includes the first word plus the new characters you've typed. You should probably change that so it searches back from the current insertion point to the previous space character or beginning of line.
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!