I have created a program in python(Tkinter) which takes username and password as input and a button which, when pressed, goes through a function which checks the username and password and further runs the program. I want that, rather than clicking the button, user presses the 'Enter' key and that does the function of the button. please help.
I believe you'll want to bind the  key to your handler: frame.bind('<Return>', some_handler).
Getting values by pressing 'Enter' key rather than clicking a button