On Dec 7, 2009, at 7:20 AM, Jacek Kałucki wrote:

> I need to capture entire keyboard input at the form, not at the  
> control
> level.
> Unfortunately wx.EVT_CHAR_HOOK (which isn't wrapped by Dabo)
> didn't capture alphanumeric keys :(

        That was the main reason why we didn't wrap it. It also behaves  
differently on different platforms, which makes it an even worse  
solution.

> Only working solution I found till now is to play with
> ResumePropagation() method.
> Disadvantage is, I need to subclass all controls in form to make it  
> working.
> Any advices please?


        First, this is really more appropriate for the dabo-dev list, since  
we're talking about the low-level wxPython implementation details. I  
would also avoid wx-specific approaches, since once you start down  
that path, you're on your own.

        One big issue is that wxPython doesn't first "offer" the key to the  
form, and then send it to the control if the form doesn't process it.  
Even wx.EVT_CHAR_HOOK only works on a control that has focus, so that  
wouldn't work for what you want. Any sort of form-wide solution will  
require substantial subclassing, so perhaps it would be best to  
discuss on dabo-dev.


-- Ed Leafe



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to