10

How do I find out which widget in my wx.Frame has the focus?

Ram Rachum
  • 84,019
  • 84
  • 236
  • 374

1 Answers1

10

You should be able to use the Window class's static FindFocus() method to return the object that has focus.

api: http://www.wxpython.org/docs/api/wx.Window-class.html#FindFocus

examples: http://nullege.com/codes/search/wx.Window.FindFocus/all/page:2

sleepynate
  • 7,926
  • 3
  • 27
  • 38