How do I find out which widget in my wx.Frame
has the focus?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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