Werner F. Bruhin wrote:

Is this maybe an issue with 7zip or whatever you used to unzip the file on the Mac?

I think so -- I had to download a utility to deal with it, and it's behaving oddly -- maybe try regular old zip next time.

Enjoy your vacation and forget about connectivity:)

I did, and I'm back now, tanned and rested..


When you have a moment can you send what you have - you wanted to attach it to the last message but it isn't(:.

darn! I hate it when I do that!

Here it is this time, though it is pretty non-functional (draw circle mode, works, though)

Werner F. Bruhin wrote:
Looking at the fc/demo/MouseTest.py sample I just don't get it how one has e.g. two different OnLeftDown handlers for two different GUI modes.

I naively created a module which contains my two GUIModes which are sub-classed/inherit from GUIMode.GUIMouse, each with his specific OnLeftDown handler. But doing this is still calling the event handler defined in my application and not the one in the GUIMode.

That should do it -- the trick is setting the mode on the Canvas. Did you call:

FloatCanvas.SetMode()

with your new mode?

The trick is integrating this with the NavCanvas Toolbar.

Should there be a different "Bind" command for the above to work, or should the one common OnLeftDown handler check the GUIMode the application is in and call the specific handler?

yup -- that's how it works --

No time for more now, but I'll try to do a bit more later.

-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]

Attachment: EditingModes.py
Description: application/python

_______________________________________________
FloatCanvas mailing list
[email protected]
http://paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to