Author: bugman Date: Mon Sep 19 18:56:37 2011 New Revision: 14700 URL: http://svn.gna.org/viewcvs/relax?rev=14700&view=rev Log: Fix for the results viewer window on MS Windows. The user functions now have the results viewer window set as the parent so that the window is not hidden by the main GUI window coming to the front. Modified: 1.3/gui/results_viewer.py Modified: 1.3/gui/results_viewer.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/results_viewer.py?rev=14700&r1=14699&r2=14700&view=diff ============================================================================== --- 1.3/gui/results_viewer.py (original) +++ 1.3/gui/results_viewer.py Mon Sep 19 18:56:37 2011 @@ -40,7 +40,7 @@ from gui.interpreter import Interpreter; interpreter = Interpreter() from gui.misc import add_border, gui_to_str, open_file, str_to_gui from gui.paths import icon_22x22 -from gui.user_functions import User_functions; user_functions = User_functions() +from gui.user_functions import User_functions class Results_viewer(wx.Frame): @@ -59,6 +59,9 @@ # Initialise the base frame. wx.Frame.__init__(self, parent=parent, style=wx.DEFAULT_FRAME_STYLE) + + # Initialise the user functions. + self.user_functions = User_functions(self) # Set up the window icon. self.SetIcons(relax_icons) @@ -248,15 +251,15 @@ # Grace files. if type == 'grace': - user_functions.grace.view(file=file) + self.user_functions.grace.view(file=file) # PyMOL macro files. elif type == 'pymol': - user_functions.pymol.macro_run(file=file) + self.user_functions.pymol.macro_run(file=file) # Molmol macro files. elif type == 'molmol': - user_functions.molmol.macro_run(file=file) + self.user_functions.molmol.macro_run(file=file) # Diffusion tensor PDB. elif type == 'diff_tensor_pdb':