For each interested control, intercept wx.EVT_KILL_FOCUS and wx.EVT_SET_FOCUS.
Then event.GetWindow() will give respectively the window that lost the focus and the one who took it.
For each interested control, intercept wx.EVT_KILL_FOCUS and wx.EVT_SET_FOCUS.
Then event.GetWindow() will give respectively the window that lost the focus and the one who took it.
There is also EVT_CHILD_FOCUS which will be sent any time a child of the window gets the focus. This is an easy way to sense focus change for a group of widgets in the same hierachy.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!