Skip to content

Instantly share code, notes, and snippets.

@ricardj
ricardj / tkinter-autocomplete-listbox.py
Last active July 14, 2020 12:53 — forked from uroshekic/tkinter-autocomplete-listbox.py
Tkinter - Autocomplete Entry Field
"""
Changes added by ricardj:
-Import now done with tk prefix instead of using the wildcard import.
-Down movement starts at zero.
-Now up and down movement is cyclic.
-Added return function in order to use the autocomplete-listbox as a tag selector. With out leaving the keyboard the user is going to be able to write with autocomplete and select some tags fast.
-List height reimplemented to make it adapt to the number of matching words. It would be great to define a max listbox length and not to fix the listbox length from the begining.
"""
#from tkinter import *