Stumped: arrows/tab kills keyboard focus

Thanks, Robin! I appreciate your extra help here.

  • j.
···

On Thursday, June 7, 2012 3:57:53 PM UTC-7, Robin Dunn wrote:

On 6/7/12 11:16 AM, Joel Burton wrote:

Finally, MultiSplitterWindow is also a wx.Panel, so it will participate
in navigation and such and may also get in the way of what you are
wanting. I see that it is always adding the wx.TAB_TRAVERSAL style
before calling the base class __init__ so you may need to turn it off
again after construction.

Given that wx.WANTS_CHARS solves this problem. I apparently don’t need

to turn off the TAB_TRAVERSAL on the splitter.

But I’m curious how I could do so best I can make it work by wholesale

copying the original splitter.py MultiSplitterWindow init into a

subclassed NonTraversingSplitterWindow and commenting out the line that

always adds TAB_TRAVERSAL. That worked but it’s pretty ugly copying and

pasting the entire init method into the subclass. You make it sound

like I can adjust the style after construction, but I don’t see how. Any

pointers?

See wx.Window.SetWindowStyleFlag. Not all styles can be changed after
construction, but I believe that wx.WANTS_CHARS can.


Robin Dunn

Software Craftsman

http://wxPython.org