I am starting out using Canvas
objects in Python.
I've created the following simple job: the intention is that a blue triangle which, when double clicked, turns yellow.
Instead, it is yellow right from the start. What am I doing wrong?
from Tkinter import *
def Yellow():
canv.itemconfigure(obj,fill='yellow')
root=Tk()
canv=Canvas(root,width=200,height=200)
obj=canv.create_polygon(100,100,120,120,120,80,fill='blue')
canv.tag_bind(obj,'<Double-1>',Yellow())
canv.pack()
root.mainloop()