You need to bind your widget with the Return string as well as the function to run when you hit enter
my_textbox.bind("<Return>", self.func_to_run)
Output:my_textbox.bind("<Return>", self.func_to_run)
Recommended Tutorials: