Author: bugman
Date: Wed Jan 14 15:35:01 2015
New Revision: 27164

URL: http://svn.gna.org/viewcvs/relax?rev=27164&view=rev
Log:
Fix for the showing of the spin viewer window in the GUI tests.

The show_tree() method of the main GUI window class was not calling the custom
self.spin_viewer.Show() method, as required to set up the observer objects 
required to keep the spin
viewer window updated.  The value of status.show_gui was blocking this.  
Instead the show argument
of this Show() method is being set to status.show_gui to allow the method to 
always be executed.


Modified:
    trunk/gui/relax_gui.py

Modified: trunk/gui/relax_gui.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/gui/relax_gui.py?rev=27164&r1=27163&r2=27164&view=diff
==============================================================================
--- trunk/gui/relax_gui.py      (original)
+++ trunk/gui/relax_gui.py      Wed Jan 14 15:35:01 2015
@@ -779,8 +779,8 @@
             return
 
         # Open the window (the GUI flag check is inside the Show method).
-        if status.show_gui and not self.spin_viewer.IsShown():
-            self.spin_viewer.Show()
+        if not self.spin_viewer.IsShown():
+            self.spin_viewer.Show(show=status.show_gui)
 
 
     def state_load(self, event=None, file_name=None):


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-commits mailing list
[email protected]

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to