Popular recipes by Miguel Ángel Alarcos Torrecillas http://code.activestate.com/recipes/users/4183471/2012-09-06T19:16:09-07:00ActiveState Code RecipesAn Entry with autocompletion for the Tkinter GUI (Python)
2012-09-06T19:16:09-07:00Miguel Ángel Alarcos Torrecillashttp://code.activestate.com/recipes/users/4183471/http://code.activestate.com/recipes/578253-an-entry-with-autocompletion-for-the-tkinter-gui/
<p style="color: grey">
Python
recipe 578253
by <a href="/recipes/users/4183471/">Miguel Ángel Alarcos Torrecillas</a>
(<a href="/recipes/tags/autocomplete/">autocomplete</a>, <a href="/recipes/tags/entry/">entry</a>, <a href="/recipes/tags/tkinter/">tkinter</a>).
Revision 2.
</p>
<p>An example of how to make an entry widget with autocompletion for the Tkinter GUI. It uses regular expression but you can subclass AutocompleteEntry and override the comparison method.</p>
<p>You can use the arrow keys 'up' and 'down' to select an item at the listbox, and the 'right' key to take it to the entry widget.</p>