wxPython: How to get sizer from wx.StaticText?
问题 The widget is in one of many sizers I make, but how to get sizer of one of these widgets, for example in wx.StaticText . First, I though wx.StaticText have a method GetSizer() because it derived from wx.Window , but it always return None , is there a way? Sorry for my poor language. EDIT (08/23/2012) Solution from Mike Driscoll: Using self.sizer.GetChildren() to get SizerItemList from some sizer, then using GetWindow() to get actual widget from the list 回答1: If the sizer has children, then