コード例 #1
0
ファイル: storyMap.py プロジェクト: PlumpMath/PandaZUI
 def add_row(self):
     for i in range(self.num_columns):
         b = StoryMapBox(self.storyCardClass, geomnode=card())
         b.setPythonTag('storymap', self)
         self.append(b)
     #self._position_remove_button()
     #self.remove_row_button.show()
     # FIXME: don't like StoryMap calling zcanvas here, should send some sort
     # of notification instead.
     if zcanvas.focus is None: zcanvas._zoomToNodePath(zcanvas.home)
コード例 #2
0
ファイル: storyMap.py プロジェクト: seanh/PandaZUI
 def add_row(self):
     for i in range(self.num_columns):
         b = StoryMapBox(self.storyCardClass, geomnode=card())
         b.setPythonTag('storymap',self)
         self.append(b)      
     #self._position_remove_button()
     #self.remove_row_button.show()
     # FIXME: don't like StoryMap calling zcanvas here, should send some sort
     # of notification instead.
     if zcanvas.focus is None: zcanvas._zoomToNodePath(zcanvas.home)
コード例 #3
0
ファイル: storyMap.py プロジェクト: seanh/PandaZUI
 def restore_memento(self,memento):
     """Restore the object's internal state from a memento."""
     self.empty()
     for box_memento in memento.box_mementos:
         box = StoryMapBox(storyCardClass=self.storyCardClass, geomnode=card())
         box.setPythonTag('storymap',self)
         box.restore_memento(box_memento)
         self.append(box)
     self.title.enterText(memento.title)
     self._position_add_button()
     # FIXME: don't like StoryMap calling zcanvas here, should send some sort
     # of notification instead.
     if zcanvas.focus is None: zcanvas._zoomToNodePath(zcanvas.home)        
コード例 #4
0
ファイル: storyMap.py プロジェクト: PlumpMath/PandaZUI
 def restore_memento(self, memento):
     """Restore the object's internal state from a memento."""
     self.empty()
     for box_memento in memento.box_mementos:
         box = StoryMapBox(storyCardClass=self.storyCardClass,
                           geomnode=card())
         box.setPythonTag('storymap', self)
         box.restore_memento(box_memento)
         self.append(box)
     self.title.enterText(memento.title)
     self._position_add_button()
     # FIXME: don't like StoryMap calling zcanvas here, should send some sort
     # of notification instead.
     if zcanvas.focus is None: zcanvas._zoomToNodePath(zcanvas.home)