<human>:  Python get focused entry name
<bot>: Here is some code to get the widget which has currently the focus in tkinter instance `window2`

print(('focus object class:', window2.focus_get().__class__))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.