Popular recipes tagged "autocomplete"http://code.activestate.com/recipes/tags/autocomplete/2017-04-03T15:18:36-07:00ActiveState Code RecipesCombobox Autocomplete (Python)
2017-04-03T15:17:26-07:00Miguel Martínez Lópezhttp://code.activestate.com/recipes/users/4189907/http://code.activestate.com/recipes/580770-combobox-autocomplete/
<p style="color: grey">
Python
recipe 580770
by <a href="/recipes/users/4189907/">Miguel Martínez López</a>
(<a href="/recipes/tags/autocomplete/">autocomplete</a>, <a href="/recipes/tags/combobox/">combobox</a>, <a href="/recipes/tags/entry/">entry</a>, <a href="/recipes/tags/tkinter/">tkinter</a>).
Revision 11.
</p>
<p>This is my own version of combobox autocomplete. The user can customize the matching function setting whether he wants to ignore case or whether the matching function should only match from the beginning of the string. The other possibility is to provide your own "auto complete function". The complete function returns all the found strings matching the text in the entry box.</p>
<p>It's also possible to customize the height of listbox and whether to use horizontal or vertical scrollbars.</p>
<p>Use arrows or Contro+n, Control+p to move selection on listbox.</p>
<p>This is a practical application of the combobox widget:</p>
<p><a href="https://code.activestate.com/recipes/580771-tkinter-file-autocomplete-entry/" rel="nofollow">https://code.activestate.com/recipes/580771-tkinter-file-autocomplete-entry/</a></p>
Tkinter file autocomplete entry (Python)
2017-04-03T15:18:36-07:00Miguel Martínez Lópezhttp://code.activestate.com/recipes/users/4189907/http://code.activestate.com/recipes/580771-tkinter-file-autocomplete-entry/
<p style="color: grey">
Python
recipe 580771
by <a href="/recipes/users/4189907/">Miguel Martínez López</a>
(<a href="/recipes/tags/autocomplete/">autocomplete</a>, <a href="/recipes/tags/entry/">entry</a>, <a href="/recipes/tags/file/">file</a>, <a href="/recipes/tags/tkinter/">tkinter</a>).
Revision 9.
</p>
<p>I define a "File_Entry" widget to make more easier to the final user to write and search for a path. I am using my own version of combobox widget:</p>
<p><a href="https://code.activestate.com/recipes/580770-combobox-autocomplete/" rel="nofollow">https://code.activestate.com/recipes/580770-combobox-autocomplete/</a></p>
An 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>