def getBBox(self): bbox = BBox([0,0],[0,0]) for key in self.data.keys(): for val in self.data[key]: bbox.addPoint(add(val[0],(len(val[1]),0))) return bbox
def pack(self): bbox = BBox([0,0],[0,0]) for child in self.children: bbox.addPoint(add(child.position, child.size)) self.contentSize = bbox