Exemplo n.º 1
0
 def restore_memento(self,memento):
     self.empty()
     for box_memento in memento.box_mementos:
         box = StoryMapBox(storyCardClass=StoryCard,geomnode=card())
         box.setPythonTag('storymap',self)
         box.restore_memento(box_memento)
         self.append(box)
Exemplo n.º 2
0
    def __init__(self):
    
        VBoxList.__init__(self,margin=1.5)
        for i in range(10):
            b = StoryMapBox(storyCardClass=StoryCard,geomnode=card())
            b.setPythonTag('storymap',self)
            self.append(b)

        self.right_np = aspect2d.attachNewNode('right frame')
        width = 0.2*base.getAspectRatio()
        self.right_np.setPos(base.getAspectRatio()+width,0,1)
Exemplo n.º 3
0
    def __init__(self):

        VBoxList.__init__(self, margin=1.5)
        for i in range(10):
            b = StoryMapBox(storyCardClass=StoryCard, geomnode=card())
            b.setPythonTag('storymap', self)
            self.append(b)

        self.right_np = aspect2d.attachNewNode('right frame')
        width = 0.2 * base.getAspectRatio()
        self.right_np.setPos(base.getAspectRatio() + width, 0, 1)
Exemplo n.º 4
0
 def restore_memento(self, memento):
     self.empty()
     for box_memento in memento.box_mementos:
         box = StoryMapBox(storyCardClass=StoryCard, geomnode=card())
         box.setPythonTag('storymap', self)
         box.restore_memento(box_memento)
         self.append(box)