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)
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)
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)
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)