Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wxPython: How do I find out which widget has the focus?

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

like image 910
Ram Rachum Avatar asked Aug 10 '10 19:08

Ram Rachum


1 Answers

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

like image 54
sleepynate Avatar answered Oct 05 '22 23:10

sleepynate