mailr14644 - /1.3/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 September 14, 2011 - 19:08:
Author: bugman
Date: Wed Sep 14 19:08:47 2011
New Revision: 14644

URL: http://svn.gna.org/viewcvs/relax?rev=14644&view=rev
Log:
The user function class is no longer stored in self.gui.

This is no longer needed, as all the GUI code has been converted.


Modified:
    1.3/gui/relax_gui.py

Modified: 1.3/gui/relax_gui.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/relax_gui.py?rev=14644&r1=14643&r2=14644&view=diff
==============================================================================
--- 1.3/gui/relax_gui.py (original)
+++ 1.3/gui/relax_gui.py Wed Sep 14 19:08:47 2011
@@ -66,7 +66,7 @@
 from gui.relax_prompt import Prompt
 from gui.results_viewer import Results_viewer
 from gui.settings import Free_file_format, load_sequence
-from gui.user_functions import User_functions
+from gui.user_functions import User_functions; user_functions = 
User_functions()
 
 
 class Main(wx.Frame):
@@ -119,9 +119,6 @@
 
         # Initialise the GUI data.
         self.init_data()
-
-        # The user function GUI elements.
-        self.user_functions = User_functions()
 
         # Build the menu bar.
         self.menu = Menu(self)
@@ -154,7 +151,7 @@
 
         # Run a script.
         if script:
-            wx.CallAfter(self.user_functions.script.script_exec, script)
+            wx.CallAfter(user_functions.script.script_exec, script)
 
 
     def about_gui(self, event):




Related Messages


Powered by MHonArc, Updated Thu Sep 15 10:00:02 2011