How can I get suggestions from a list while typing in a ttk.Combobox
?
A little like google but the suggested words are in a list.
My code so far:
from tkinter import Tk, ttk, StringVar, OptionMenu
root = Tk()
w, h = root.winfo_screenwidth(), root.winfo_screenheight()
root.geometry("%dx%d+0+0" % (w, h))
lst=["tip1","oop","ool2","oll3","tip2","ool1","some","tip3","ool","oop"]
t = ttk.Combobox(scrollable_frame, values=lst_matricula)
t.grid(row=0, column=0,sticky="w",padx=2,pady=2)
if __name__ == "__main__":
root.mainloop()
First i need the optionMenu to be editable and then while i type it search the list for matches.
Been looking to binding events but there is no event onchange :s
Can anyone help me out?