mailr14260 - /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 August 08, 2011 - 14:48:
Author: bugman
Date: Mon Aug  8 14:48:17 2011
New Revision: 14260

URL: http://svn.gna.org/viewcvs/relax?rev=14260&view=rev
Log:
Warning dialogs are shown if the pipe editor or spin viewer windows are 
opened during the exec lock.


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=14260&r1=14259&r2=14260&view=diff
==============================================================================
--- branches/gui_testing/gui/relax_gui.py (original)
+++ branches/gui_testing/gui/relax_gui.py Mon Aug  8 14:48:17 2011
@@ -404,6 +404,11 @@
         @type event:    wx event
         """
 
+        # Throw a warning if the execution lock is on.
+        if status.exec_lock.locked():
+            dlg = wx.MessageDialog(self, "Leaving the pipe editor window 
open will slow down the calculations.", caption="Warning", 
style=wx.OK|wx.ICON_EXCLAMATION|wx.STAY_ON_TOP)
+            dlg.ShowModal()
+
         # Build the pipe editor if needed.
         if not hasattr(self, 'pipe_editor'):
             self.pipe_editor = Pipe_editor(gui=self)
@@ -435,6 +440,11 @@
         @param event:   The wx event.
         @type event:    wx event
         """
+
+        # Throw a warning if the execution lock is on.
+        if status.exec_lock.locked():
+            dlg = wx.MessageDialog(self, "Leaving the spin viewer window 
open will slow down the calculations.", caption="Warning", 
style=wx.OK|wx.ICON_EXCLAMATION|wx.STAY_ON_TOP)
+            dlg.ShowModal()
 
         # Build the spin view window.
         if not hasattr(self, 'spin_viewer'):




Related Messages


Powered by MHonArc, Updated Mon Aug 08 16:00:02 2011