entry1 = Text(window, font="Times 15", height=3, width=45)
entry1.place(x=20,y=250)
button1=Button(window, text='Submit',width=10,font="Times 15",fg='darkblue',bg='grey',command=enter)
button1.place(x=20,y=330)
button2=Button(window, text='Reset',width=10,font="Times 15",fg='darkblue',bg='grey',command=reset)
button2.place(x=320,y=330)
entry1.bind('<Return>',enter)
what does the bind function do here and what is its purpose? what is an eventloop and what is the difference between eventloop and mainloop?