there are three methods in wxPython:
1,wx.FindWindowById(id,parent = None)
2,wx.FindWindowByName(name,parent = None)
3,wx.FindWindowByLabel(label,parent = None)
in all three cases,the parent argument can be used to limit the search to a particular subhierarchy (i.e.,it's equivalent to calling the Find method of that argument ). Also ,FindWindowByName() looks first in the name arguments' if it does not find a match ,it calls FindWindowByLabel() to look for a match.
本文介绍了wxPython中三种查找窗口的方法:通过ID、名称及标签查找,并解释了如何使用parent参数来限制搜索范围。此外还提到当通过名称未找到匹配项时,会进一步尝试通过标签进行查找。
5万+

被折叠的 条评论
为什么被折叠?



