def _get_children ( self ): layout = self.layout children = [] for i in xrange( layout.count() ): children.append( layout_item_adapter( layout.itemAt( i ) ) ) return children
def _get_children(self): return [layout_item_adapter(child) for child in self.layout.GetChildren()]
def _get_children(self): layout = self.layout print "layout.count():", layout.count() return [layout_item_adapter(layout.itemAt(i)) for i in xrange(layout.count())]