Key scrolling in TreeListCtrl doesn't work properly

I couldn’t have said it any better than this note posted to wxpython-mac. I have exactly the same problem and it is seriously annoying. I’m on windows and see the same behavior.

“”"
Steve West

3/25/14

Up and Down keyboard scrolling misbehaves in my TreeListCtrl based app.

The problem also occurs in the WxPython Demo Code 3.0.0.

I am running WxPython 3.0.0 and wx version 2.7.6 on OSX 10.9.2

  1. Run the TreeListCtrl Demo under CustomControls:

  2. Expand several tree entries at both levels, so that the data set has many more lines than there are lines in the panel.

  3. Mouse Left click to select any line. The line will be highlighted with a blue background.

  4. Alternately use the Keyboard Up or Down keys.

Not
only does the blue highlight move, but the window also scrolls. If the highlighted line is at the top of the panel, and you hit the up key the selected line will be scrolled out of view.

The highlighted item also scrolls off screen if the highlighted line is at the bottom of
the panel and you hit the down key. It seems that the code is perhaps scrolling twice in response to the key presses.

I would like the behavior to be the same as in other widgets, for example as in CustomTreeCtrl under advanced Generic Widgets.

Any help isolating this issue would be much appreciated.

Thanks

Steve
“”"