Working with Sizers

Mike Driscoll · Apress eBooks · 2017

In this recipe we will discover how to get the children widgets from a sizer object. In wxPython, you would expect to call the sizer’s GetChildren() method. However, this returns a list of SizerItem objects rather than a list of the actual widgets themselves. You can see the difference if you call a wx.Panel’s GetChildren() method which will actually give you a list of widgets.

Read the paper · More papers on PaperTik