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

后端 未结 1 1222
谎友^
谎友^ 2021-01-17 16:31

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

相关标签:
1条回答
  • 2021-01-17 16:51

    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

    0 讨论(0)
提交回复
热议问题