Consider the following program:

def print_event(evt):
    print "Event at", evt.x, evt.y
    
from Tkinter import *
b = Button()
b.pack()
b.bind("<B1-Motion>", print_event)
b.mainloop()

Click inside the button, then move the mouse around, including outside the area
of the button.  You'll continue to see the message "Event at ..." printed as
long as the mouse continues moving, until you release the button.

Jeff
_______________________________________________
Tkinter-discuss mailing list
[email protected]
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to