Exemplo n.º 1
0
    def drawOn(self, canv):
        #make a frame
        frame = Frame(self.x, self.y, self.width, self.height)
        frame.showBoundary = self.showBoundary

        #build a story for the frame
        story = []
        for thingy in self.content:
            #ask it for any flowables
            story.append(thingy.getFlowable())
        #draw it
        frame.addFromList(story, canv)
Exemplo n.º 2
0
    def drawOn(self, canv):
        # make a frame
        frame = Frame(self.x, self.y, self.width, self.height)
        frame.showBoundary = self.showBoundary

        # build a story for the frame
        story = []
        for thingy in self.content:
            # ask it for any flowables
            story.append(thingy.getFlowable())
        # draw it
        frame.addFromList(story, canv)