https://stackoverflow.com/questions/75664343/tkinter-child-widgets-dont-trigger-leave-on-parent
def gain_focus(event):
    print(f"gain focus: {event.widget}")

def lose_focus(event):
    print(f"lose focus: {event.widget}")

root.bind_all("<<Enter>>", gain_focus)
root.bind_all("<<Leave>>", lose_focus)