wxPython:如何找出哪个小部件有重点? [英] wxPython: How do I find out which widget has the focus?

查看:151
本文介绍了wxPython:如何找出哪个小部件有重点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何找到我的 wx.Frame 中的哪个小部件有焦点?

解决方案

你应该能够使用Window类的静态 FindFocus()方法返回焦点对象。



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



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

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

解决方案

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

这篇关于wxPython:如何找出哪个小部件有重点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆