Author: bugman Date: Tue Apr 24 13:59:45 2012 New Revision: 15805 URL: http://svn.gna.org/viewcvs/relax?rev=15805&view=rev Log: During the GUI tests from the GUI, the relax controller is now modal. This is to stop users from doing silly things! Modified: 1.3/gui/relax_gui.py Modified: 1.3/gui/relax_gui.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/relax_gui.py?rev=15805&r1=15804&r2=15805&view=diff ============================================================================== --- 1.3/gui/relax_gui.py (original) +++ 1.3/gui/relax_gui.py Tue Apr 24 13:59:45 2012 @@ -458,6 +458,9 @@ self.controller.SetWindowStyle(orig_style | wx.STAY_ON_TOP) self.controller.Refresh() + # Make the relax controller modal so that all other windows are deactivated (to stop users from clicking on things). + self.controller.MakeModal(True) + # Reset relax. reset() @@ -481,8 +484,9 @@ if wx.IsBusy(): wx.EndBusyCursor() - # Restore the controller style. + # Restore the controller. self.controller.SetWindowStyle(orig_style) + self.controller.MakeModal(False) self.controller.Refresh()