Dynamic suggestions for text ctrl in wxPython?

597 Views Asked by At

Is there any way to mimic the dynamic suggestions behavior as per the search field on Google? As in, I type something in a text ctrl, and a list of suggestions pops up below for the user to chose from? If wxPython doesn't have such a feature, perhaps some other Python gui has it?

EDIT: For use on a Mac. That excludes this example, although it seems to be exactly what I am looking for.

2

There are 2 best solutions below

2
On

Im not sure it theres a way to automatically do this but I think it could be easily achieved by binding to EVT_TEXT.

This is a recipe from the wxpython wiki for a TextCtrlAutoComplete control

2
On

Have you tried AutocompleteTextCtrl?

You could quickly download and test it as it comes with a nice test module to run straight away.