GenericDirCtrl events

I'm trying to catch an event from a GenericDirCtrl whenever a user delects a new directory. I can't seem to figure out what event I should be catching. So two questions.

1. What event should I be catching, and how do I?

2. Is there a way to have the top level window catch *all* events so I can see what events are being generated in the future?

Thank you.

Jesse Hein wrote:

I'm trying to catch an event from a GenericDirCtrl whenever a user delects a new directory. I can't seem to figure out what event I should be catching. So two questions.

1. What event should I be catching, and how do I?

You can get the tree events by binding to dirctrl.GetTreeCtrl(), just remember to call event.Skip in the handlers so the dirctrl can process them too.

2. Is there a way to have the top level window catch *all* events so I can see what events are being generated in the future?

Other than manually binding all events, no.

ยทยทยท

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