コード例 #1
0
ファイル: stack.py プロジェクト: seanh/PandaZUI
 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)
コード例 #2
0
ファイル: stack.py プロジェクト: PlumpMath/PandaZUI
 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)
コード例 #3
0
ファイル: stack.py プロジェクト: seanh/PandaZUI
    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)
コード例 #4
0
ファイル: stack.py プロジェクト: PlumpMath/PandaZUI
    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)