Bug? wx.Choice ignores wx.WANTS_CHARS

Robin Dunn wrote:

Michael Hipp wrote:

Is this a bug?

wx.Choice is derived from wx.Window so it should inherit the ability to obey wx.WANTS_CHARS but it seems to ignore the directive. It eats Tab characters rather than passing them along as an event.

How do I get it to give me (in particular) the Tab key?

The tab is probably stolen by the parent to implement navigation. If the parent is a panel try giving it a style=0 so that wx.TAB_TRAVERSAL is turned off.

My app looks like this:

   Frame
     Notebook
       Panel
         Sizer
           Choice
           Other controls

I put the style=0 on the panel init but it made no difference. All the other controls (TextControls) are receiving characters as expected, but the Choice does not.

Thanks,
Michael