Author: bugman Date: Mon Sep 19 17:53:44 2011 New Revision: 14696 URL: http://svn.gna.org/viewcvs/relax?rev=14696&view=rev Log: Fixes for the user functions launched from the tree part of the spin viewer window on MS Windows. The spin viewer window is now set as the parent, so that the main GUI window does not come to the front. Modified: 1.3/gui/spin_viewer/tree.py Modified: 1.3/gui/spin_viewer/tree.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/spin_viewer/tree.py?rev=14696&r1=14695&r2=14696&view=diff ============================================================================== --- 1.3/gui/spin_viewer/tree.py (original) +++ 1.3/gui/spin_viewer/tree.py Mon Sep 19 17:53:44 2011 @@ -38,7 +38,7 @@ from gui.components.menu import build_menu_item from gui.message import Question from gui.misc import gui_to_str -from gui.user_functions import User_functions; user_functions = User_functions() +from gui.user_functions import User_functions class Mol_res_spin_tree(wx.Window): @@ -193,6 +193,9 @@ @type event: wx event """ + # Set up the user functions. + user_functions = User_functions(self.gui.spin_viewer) + # Call the dialog. user_functions.molecule.create() @@ -204,6 +207,9 @@ @type event: wx event """ + # Set up the user functions. + user_functions = User_functions(self.gui.spin_viewer) + # Call the dialog. user_functions.residue.create(mol_name=self.info['mol_name']) @@ -214,6 +220,9 @@ @param event: The wx event. @type event: wx event """ + + # Set up the user functions. + user_functions = User_functions(self.gui.spin_viewer) # Call the dialog. user_functions.spin.create(mol_name=self.info['mol_name'], res_num=self.info['res_num'], res_name=self.info['res_name'])