I was trying to learn a bit more about Tkinter and came across this code online
import Tkiner
import ttk
root = Tk()
l =ttk.Label(root, text="Starting...")
l.grid()
l.bind('<Enter>', lambda e: l.configure(text='Moved mouse inside'))
l.bind('<Leave>', lambda e: l.configure(text='Moved mouse outside'))
l.bind('<1>', lambda e: l.configure(text='Clicked left mouse button'))
l.bind('<Double-1>', lambda e: l.configure(text='Double clicked'))
l.bind('<B3-Motion>', lambda e: l.configure(text='right button drag to %d,%d' % (e.x, e.y)))
root.mainloop()
When I ran this program, and dragged my mouse over the screen while the RMB was pressed it gave me the coordinates as is mentioned it should do in the "B3-Motion" bind.
What exactly does the temp variable "e" refer to in this scenario?
Thanks!