tkinter default button in a widget
Bind a callback to the '<Return>'
event to the window (often called root
in Tkinter) or to the containing frame. Have the callback accept an event parameter (which you can ignore) and have it invoke()
your button's callback.
root.bind('<Return>', (lambda e, b=b: b.invoke())) # b is your button