mailr27819 - /trunk/pipe_control/reset.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on March 17, 2015 - 11:12:
Author: bugman
Date: Tue Mar 17 11:12:55 2015
New Revision: 27819

URL: http://svn.gna.org/viewcvs/relax?rev=27819&view=rev
Log:
Fix for the pipe_control.reset.reset() function when resetting the GUI in 
non-standard contexts.

This is mainly for debugging scripts when simulating a GUI and hence the GUI 
reset() method does not
exist.


Modified:
    trunk/pipe_control/reset.py

Modified: trunk/pipe_control/reset.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/pipe_control/reset.py?rev=27819&r1=27818&r2=27819&view=diff
==============================================================================
--- trunk/pipe_control/reset.py (original)
+++ trunk/pipe_control/reset.py Tue Mar 17 11:12:55 2015
@@ -1,6 +1,6 @@
 
###############################################################################
 #                                                                            
 #
-# Copyright (C) 2003-2013 Edward d'Auvergne                                  
 #
+# Copyright (C) 2003-2015 Edward d'Auvergne                                  
 #
 #                                                                            
 #
 # This file is part of the program relax (http://www.nmr-relax.com).         
 #
 #                                                                            
 #
@@ -46,4 +46,5 @@
             return
 
         # Call the GUI reset.
-        app.gui.reset()
+        if hasattr(app.gui, 'reset'):
+            app.gui.reset()




Related Messages


Powered by MHonArc, Updated Tue Mar 17 12:40:03 2015