[wxPython-users] OGL smart shape position in a canvas

Christopher Barker Chris.Barker at noaa.gov
Mon May 14 12:03:27 PDT 2007


Marco,

I know you've found your way to the FloatCanvas list, but I thought I'd 
address these here for the archives:

> Ok, I will read the doc about that. What are their power? Threy are
> autopositioing like graphviz do?

FloatCanvas has no auto-positioning, but I don't think OGL does either :-(

> The problem is that the FloatCanvas is not draggable...

You can make dragable objects with FloatCanvas, but it's not built-in 
"out of the box"

> Is possible to bind a mouse event to every FloatCanvas elements?

Yes, that's easy -- you can bind any of the mouse events to the Canvas 
itself, or to just the objects you want clickable.

However, I don't know enough about your app to say if FloatCanvas or OGL 
is a better choice. In short, I think OGL provides better support for 
"lines-connecting-boxes", and FloatCanvas better support for arbitrary 
coordinates and zooming and panning.

-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