Bind Key action: Return : Key Action « Event « Python
- Python
- Event
- Key Action
Bind Key action: Return

from Tkinter import *
root = Tk()
def greet(*ignore): print 'Hello World'
root.bind('<Return>', greet)
root.mainloop()
Related examples in the same category