Author: bugman Date: Mon Aug 8 19:56:46 2011 New Revision: 14275 URL: http://svn.gna.org/viewcvs/relax?rev=14275&view=rev Log: The results viewer now give a warning with the exec lock and is only shown once. 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=14275&r1=14274&r2=14275&view=diff ============================================================================== --- branches/gui_testing/gui/relax_gui.py (original) +++ branches/gui_testing/gui/relax_gui.py Mon Aug 8 19:56:46 2011 @@ -442,12 +442,17 @@ @type event: wx event """ + # Throw a warning if the execution lock is on. + if status.exec_lock.locked(): + dlg = wx.MessageDialog(self, "Leaving the results viewer window open will slow down the calculations.", caption="Warning", style=wx.OK|wx.ICON_EXCLAMATION|wx.STAY_ON_TOP) + dlg.ShowModal() + # Create the results viewer window if needed. if not hasattr(self, 'results_viewer'): self.results_viewer = Results_viewer(gui=self) # Open the window. - if status.show_gui: + if not self.results_viewer.IsShown(): self.results_viewer.Show()