mailr15767 - /1.3/relax.py


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

Header


Content

Posted by edward on April 17, 2012 - 18:27:
Author: bugman
Date: Tue Apr 17 18:27:46 2012
New Revision: 15767

URL: http://svn.gna.org/viewcvs/relax?rev=15767&view=rev
Log:
The import of the gui package now only occurs in GUI mode.

This will speed up the program start up.  It also has the side effect of 
bypassing the hack of the
GUI resetting the ANSI escape characters of the relax prompt.


Modified:
    1.3/relax.py

Modified: 1.3/relax.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/relax.py?rev=15767&r1=15766&r2=15767&view=diff
==============================================================================
--- 1.3/relax.py (original)
+++ 1.3/relax.py Tue Apr 17 18:27:46 2012
@@ -52,8 +52,6 @@
 # relax modules.
 from info import Info_box
 import generic_fns
-if dep_check.wx_module:
-    import gui
 from multi import Application_callback, load_multiprocessor
 from prompt.gpl import gpl
 from prompt import interpreter
@@ -196,6 +194,9 @@
             if not dep_check.wx_module:
                 sys.stderr.write("Please install the wx Python module to 
access the relax GUI.\n\n")
                 return
+
+            # Only import the module in this mode (to improve program start 
up speeds).
+            import gui
 
             # Set the GUI flag in the status object.
             status.show_gui = True




Related Messages


Powered by MHonArc, Updated Tue Apr 17 18:40:01 2012