mothes to find subwidgets/windows in wxPython

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.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章