Author: bugman Date: Thu Sep 8 16:55:19 2011 New Revision: 14614 URL: http://svn.gna.org/viewcvs/relax?rev=14614&view=rev Log: The script user function GUI element now uses wx.GetApp() to access to the relax controller window. Modified: 1.3/gui/user_functions/script.py Modified: 1.3/gui/user_functions/script.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/user_functions/script.py?rev=14614&r1=14613&r2=14614&view=diff ============================================================================== --- 1.3/gui/user_functions/script.py (original) +++ 1.3/gui/user_functions/script.py Thu Sep 8 16:55:19 2011 @@ -61,7 +61,8 @@ # Show the relax controller. if status.show_gui: - self.gui.controller.Show() + app = wx.GetApp() + app.gui.controller.Show() # Execute the script in a thread. id = thread.start_new_thread(self.script_exec, (file,))