Exemplo n.º 1
0
 def add(self, window):
     """Add a CanvassedWindow to this pile."""
     try:
         WindowPile.add(self, window)
     except (WindowNotManagedError, AlreadyPiledError):
         raise
     else:
         self.add_widget( window )
Exemplo n.º 2
0
 def remove(self, window):
     """Remove a CanvassedWindow in this pile, from this pile."""
     try:
         WindowPile.remove(self, window)
     except (WindowNotManagedError, NotMyChildError):
         raise
     else:
         self.remove_widget(window)
Exemplo n.º 3
0
 def __init__(self, mtparent, managedwindows=None, position = (0,0) ):
     self.position = position
     self.parent_widget = mtparent
     WindowPile.__init__(self, managedwindows)
     MTScatterSvg.__init__(self, filename="pilestar.svg", do_rotation=False, do_scale=False)
     self.parent_widget.add_widget(self)