[wxPython-users] Capturing keydown events

Robin Dunn robin at alldunn.com
Mon Sep 24 15:06:14 PDT 2007


Buran, Brad wrote:
> Hi Robin,
> 
> Thanks for the suggestion.  I tried that, but the FigureCanvasWxAgg does
> not seem to accept "style" as a keyword. 

That is easily fixed, send them a bug report and/or patch.  You can try 
setting the style after the canvas is created, but I'm not sure if that 
style is one of those that need to be done at creation time.


> Since this canvas is embedded
> in a wx.Panel, would there be any way of preventing the canvas from
> receiving focus and capturing user input at the panel level?  I think I
> tried that once by using SetFocus() which did not seem to work either.  
> 

No, when panels and other container windows get the focus they always 
transfer it to the first child that can accept focus, if there is one.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list