Mouse Action : Mouse Action : Event PYTHON examples


PYTHON examples » Event » Mouse Action »

 

Mouse Action


Mouse Action: mouse cursor enter


from Tkinter import *

root = Tk()

def enter(event):
    print 'Entered Frame: x=%d, y=%d' % (event.x, event.y)

frame = Frame(root, width=150, height=150)
frame.bind('<Any-Enter>', enter)
frame.pack()

root.mainloop()

           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Event
» Mouse Action