click event

jmdeschamps at gmail.com jmdeschamps at gmail.com
Sun Nov 6 22:05:08 EST 2005


I guess you mean draw lines from the laast coordinates to the new one?

then add a few global variables:

lastX=""
lastY=""

# and modify
lastX=""
lastY=""
def click(event):
   global lastX, lastY
   if lastX != "":
      c.create_line(lastX,lastY,event.x,event.y,fill="white")
   lastX = event.x
   lastY = event.y




More information about the Python-list mailing list