def testChildrenDraw(self): layout = Layout((200, 200)) child = LayoutSub() layout.addLayout(child) otherChild = layout.addLayer(packingMode='v') otherChild.addLayout(LayoutSub()) otherChild.addLayout(LayoutSub()) self.writeImage(layout, "testChildrenDraw.gif")
def testChildrenSetImage(self): layout = Layout((200, 200)) child = LayoutSub() otherChild = layout.addLayer(packingMode='v') otherChild.addLayout(LayoutSub()) otherChild.addLayout(LayoutSub()) layout.addLayout(child) img = child.draw() child.setImage(img) self.writeImage(layout, "testChildrenSetImage.gif")