mailr13057 - /branches/gui_testing/gui/relax_gui.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 15, 2011 - 19:01:
Author: bugman
Date: Wed Jun 15 19:01:49 2011
New Revision: 13057

URL: http://svn.gna.org/viewcvs/relax?rev=13057&view=rev
Log:
The initial sizer with the relax icon is now properly deleted.


Modified:
    branches/gui_testing/gui/relax_gui.py

Modified: branches/gui_testing/gui/relax_gui.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/relax_gui.py?rev=13057&r1=13056&r2=13057&view=diff
==============================================================================
--- branches/gui_testing/gui/relax_gui.py (original)
+++ branches/gui_testing/gui/relax_gui.py Wed Jun 15 19:01:49 2011
@@ -364,6 +364,10 @@
             self.notebook = wx.Notebook(self, -1, style=wx.NB_TOP)
             sizer.Add(self.notebook, 1, wx.ALL|wx.EXPAND, 0)
 
+            # Delete the previous sizer.
+            old_sizer = self.GetSizer()
+            old_sizer.DeleteWindows()
+
             # Add the new sizer to the main window.
             self.SetSizer(sizer)
             sizer.Layout()




Related Messages


Powered by MHonArc, Updated Wed Jun 15 19:20:02 2011