On 12/9/10 12:35 PM, Richard Fuhr wrote:
The following wx sample code - http://wiki.wxpython.org/WxHowtoDrawing -
seems to provide self-contained handling of the various mouse events.
yup. That's a nice example, but also shows what I mean -- you need to do
all the mouse event handling yourself, figuring out where the person
clicked, whether it was on an object, when to re-draw the object, etc.
The tk Canvas, and FloatCanvas do much of that for you.
FloatCanvas also does zooming, and panning for you, and takes arbitrary
floating point coordinates.
-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
[email protected]