Stewart Midwinter napsal(a):
On 4/24/06, Jeff Epler <[EMAIL PROTECTED]> wrote:
  
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.
    

heh, that keeps recording coordinates even when you move entirely to
the far end of the desktop.  Handy feature for telling if you are
within bounds on a graphic app for instance.

  
Unfortunately not with me. This piece of code doesnt work as you wrote and/or is described in the link I sent before. (it is about  <Button-1> ..) :

from Tkinter import *

root = Tk()

def callback(event):
    frame.focus_set()
    print "clicked at", event.x, event.y

frame = Frame(root, width=100, height=100)
frame.bind("<Button-1>", callback)
frame.pack()

root.mainloop()


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

Reply via email to