Author: bugman Date: Wed Dec 22 10:24:53 2010 New Revision: 11936 URL: http://svn.gna.org/viewcvs/relax?rev=11936&view=rev Log: The contents of the mol, res, spin container windows is now properly cleared out. Modified: branches/bieri_gui/gui_bieri/components/spin_view.py Modified: branches/bieri_gui/gui_bieri/components/spin_view.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/components/spin_view.py?rev=11936&r1=11935&r2=11936&view=diff ============================================================================== --- branches/bieri_gui/gui_bieri/components/spin_view.py (original) +++ branches/bieri_gui/gui_bieri/components/spin_view.py Wed Dec 22 10:24:53 2010 @@ -83,12 +83,8 @@ def clear(self): """Clear the contents of the window.""" - # Loop over the sizer items, destroying them. - for item in self.sizer_items: - item.Destroy() - - # Reset the sizer content list. - self.sizer_items = [] + # Destroy all contents. + self.main_sizer.Clear(deleteWindows=True) def display(self, info):