コード例 #1
0
 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")
コード例 #2
0
 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")