Author: bugman Date: Mon Apr 16 19:54:00 2012 New Revision: 15741 URL: http://svn.gna.org/viewcvs/relax?rev=15741&view=rev Log: Fix for a bug triggered by wxPython 2.9 when deleting the last analysis tab. The self.notebook object is now deleted when the set_init_state() method is called, allowing it to be properly accessed and recreated. Modified: 1.3/gui/analyses/__init__.py Modified: 1.3/gui/analyses/__init__.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/analyses/__init__.py?rev=15741&r1=15740&r2=15741&view=diff ============================================================================== --- 1.3/gui/analyses/__init__.py (original) +++ 1.3/gui/analyses/__init__.py Mon Apr 16 19:54:00 2012 @@ -608,6 +608,9 @@ old_sizer = self.gui.GetSizer() old_sizer.DeleteWindows() + # Delete the notebook. + del self.notebook + # Recreate the start screen. self.gui.add_start_screen()