Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)        
Esempio n. 4
0
 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)