So suppose I have a code like this.
def test(widget):
widget.widget.delete("1.0", tkinter.END)
t=tkinter.Tk()
b=tkinter.scrolledtext.ScrolledText()
b.bind("<Return>", test)
b.pack()
t.mainloop()
This will delete the textbox but the cursor will always be on the second line (and after that it won't go to third line for example, so it's not like every time a new line is created, it will always be at the second line).
It sounds like first this event is triggered, then the key is processed, so when the textbox is deleted, the Enter key makes a second line.
This seems to only happen with this event.