[wxPython-users] Cannot trap keystrokes using TreeListCtrl

Robin Dunn robin at alldunn.com
Mon Sep 18 11:21:02 PDT 2006


Frank Millman wrote:

> Is there a way to get a reference to the underlying TreeCtrl, and if so,
> would it respond to EVT_KEY_DOWN?
> 

There isn't an underlying wx.TreeCtrl, but you are on the right track. 
The TreeListCtrl is composed of two windows, one for the column headers 
and one for the main body of the control.  You can get a reference to 
the main control with GetMainWindow(), if you bind your key handler to 
that you'll get the events.

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





More information about the wxpython-users mailing list