Is it possible to make an event fire in a different order. For instance, if I add a MouseWheel
listener to a Text
widget, I will get the event before the scrolling has even been applied. Is there a way to make my bind come last?
import tkinter as tk
root = tk.Tk()
def wheel(event): print('this will fire before the movement has happened')
t=tk.Text(root)
t.pack(fill=tk.BOTH, expand=True)
t.bind('<MouseWheel>', wheel)
root.mainloop()
SIDENOTE: I already have a system where I simply hijack the entire MouseWheel
event and handle the scroll myself. That's not the answer I'm looking for. I seriously want my event to come after it is handled internally.