[wxPython-users] Mouse move events got lost

Christopher Barker Chris.Barker at noaa.gov
Mon Dec 4 11:13:21 PST 2006


in the future, it generally works better to enclose the *.py file, 
rather than in-lining it -- mailers tend to mess up code.

> In the attached app, I would like the coords of the mouse to be 
> displayed whenever it is over the map but the event does not seem to get 
> handled. 

It works fine for me, on OS-X wxPython 2.6.3.

What symptoms do you see? Have you tied putting a print in your OnMove() 
method, to see if it's getting called?

By the way, if you want to be able to do this and be able to zoom and 
pan your image, wx.lib.floatcanvas would make it easy -- it also handles 
mouse event on objects, etc.

-Chris


-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov




More information about the wxpython-users mailing list