I am binding my main textinput event with a function to update a listbox with the words for auto completion. The function is getting the input from the textinput, and then using that value it is finding words for autocompletion. However, there is one problem. Getting the string includes each string except the last letter. This is because the default function (adding the letter to the end) is not executing before my custom event function. How can I execute the default first?
def update_words(event: tkinter.Event):
global words_listbox
instance = event.widget
starting_string = instance.get("0.0", customtkinter.END).split()[-1]
words_listbox.get_words(start)