Exemple #1
0
 def destroy(self):
     "This is used for destroying whole windows from the application."
     for component in self.contents:
         self.remove(component)
         component.destroy()
     Component.destroy(self)
Exemple #2
0
 def __init__(self, *args, layout=None, **kw):
     self.contents = []
     Component.__init__(self, *args, **kw)
     if layout is None:
         layout = Placer()
     self.layout = layout