mailr14264 - /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 - 17:19:
Author: bugman
Date: Mon Aug  8 17:19:40 2011
New Revision: 14264

URL: http://svn.gna.org/viewcvs/relax?rev=14264&view=rev
Log:
The data pipe and spin viewer window Show() methods are now only called if 
IsShown() is False.


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=14264&r1=14263&r2=14264&view=diff
==============================================================================
--- branches/gui_testing/gui/relax_gui.py (original)
+++ branches/gui_testing/gui/relax_gui.py Mon Aug  8 17:19:40 2011
@@ -414,7 +414,7 @@
             self.pipe_editor = Pipe_editor(gui=self)
 
         # Open the window.
-        if status.show_gui:
+        if status.show_gui and not self.spin_viewer.IsShown():
             self.pipe_editor.Show()
 
 
@@ -451,7 +451,8 @@
             self.spin_viewer = Spin_view_window(None, -1, "", parent=self)
 
         # Open the window (the GUI flag check is inside the Show method).
-        self.spin_viewer.Show()
+        if not self.spin_viewer.IsShown():
+            self.spin_viewer.Show()
 
 
     def state_load(self, event=None, file_name=None):




Related Messages


Powered by MHonArc, Updated Mon Aug 08 17:40:02 2011