in reply to Re: TK button on pressing enter
in thread TK button on pressing enter

liverpole is correct. But, to be complete, you also want to add a binding to $user_en

$user_en->bind("<Return>", sub { $button1->invoke });