Re: TextCtrl with multiple dynamic autocompletion
Cesar Tabares <[email protected]>
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <[email protected]> |
Dude, I was about to give up, your example save my life, long live to you!, works perfectly , plus I could made the autocomplete txtctrl linked to an autocomplete places google's API Thanks!! El lunes, 15 de septiembre de 2014, 18:15:07 (UTC-5), Nathan McCorkle escribió: > > > > On Monday, September 15, 2014 2:39:18 PM UTC-7, kruvva wrote: >> >> Nathan, you are right. It was self.console. >> It works with tuples too. I tested. >> >> How do I implement my own AutoComplete() method? >> > > I hadn't heard of the AutoComplete method/ability until today... so much > in wxPython is like this it seems (not sure if I fail at reading the docs, > or if the fact that super-class methods aren't included in all sub-class > pages)... but I can't comment on how to make your own function, you'll have > to search the web to see if others have done this. I posted the code in my > last post for how I handled auto-complete, basically any text that comes > into the textbox I use to create a regular expression, then use it to > search each entry in my list of choices, and re-populate the list with just > the matches. AutoComplete looks simpler and maybe pretty much what I wanted > though, so I recommend playing with it some more before giving up on it. > > I put together a sample program that seems to do what you want. See > attached. > > -- You received this message because you are subscribed to the Google Groups "wxPython-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/86930378-62e3-42c1-a656-3886a2f4c7e3%40googlegroups.com.