Author: bugman Date: Wed Sep 15 16:53:03 2010 New Revision: 11556 URL: http://svn.gna.org/viewcvs/relax?rev=11556&view=rev Log: The relax controller can now survive being closed! Closing the relax controller via the window decorations killed relaxGUI. This event is now caught and the relax controller is hidden rather than destroyed. The controller can now be opened a second time. Modified: branches/bieri_gui/gui_bieri/controller.py Modified: branches/bieri_gui/gui_bieri/controller.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/controller.py?rev=11556&r1=11555&r2=11556&view=diff ============================================================================== --- branches/bieri_gui/gui_bieri/controller.py (original) +++ branches/bieri_gui/gui_bieri/controller.py Wed Sep 15 16:53:03 2010 @@ -72,6 +72,9 @@ # Button actions self.Bind(wx.EVT_BUTTON, self.cancel_calculation, self.cancel_button) self.Bind(wx.EVT_BUTTON, self.handler_close, self.close_button) + + # Close the window cleanly (hide so it can be reopened). + self.Bind(wx.EVT_CLOSE, self.handler_close) # Integrate Singleton object. status = Status()