Reconfigure Tk to use an implicit focus model in which the focus is set to a widget whenever the mouse pointer enters it. This cannot easily be disabled once enabled.
tkinter/Misc.tk_focusFollowsMouse
Misc.tk_focusFollowsMouse