Hello, I’m doing an school project in python. I’m trying to get the widgets in a grid cell, here is an image with the current window and the hierarchy.
Before I only had a button in each cell and I used this code to get the button:
children = self.gGrid.GetChildren()
for i in children:
button = i.Window
But now I have in each cell a sizer and inside that sizer I have a label and a button and if I execute this code above I get None as a result. So I printed the i var and i got as a result this wx._core.SizerItem and it don’t have children attribute. To note that the widgets are created dynamicly I just posted the hierarchy to help understand what I’m trying to do.
Does anyone know how I can have the button and the label please? Maybe I’m doing something wrong? Is there another best way to do what I’m trying to do?
Thanks so much for the help.