Tim Ansell wrote:
> I need to customise what occurs with various key events on my
> FloatCanvas. I would like to do this the same way I customise mouse
> clicks, via the GUIMode code.
> 
> I have included a patch which allows this to occur. 

Patch applied, though I patched GUIModes.py too, so that you don't need 
to check if there if the methods are there.

> The only caveat is that you have to make sure that the FloatCanvas
> itself has the keyboard focus before these events will occur.

Yup -- I've had that issue with scroll events too.

There is no Demo code that uses the Key Events -- so I haven't really 
tested it, only tested that it doesn't seem to break anything.

Tim, have you got any small demo/test code you could contribute?

-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]
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to