Author: bugman Date: Mon Sep 19 17:42:49 2011 New Revision: 14695 URL: http://svn.gna.org/viewcvs/relax?rev=14695&view=rev Log: The user functions in the spin viewer window now have the parent window correctly set. This is to help with an MS Windows window ordering bug. Modified: 1.3/gui/menu.py Modified: 1.3/gui/menu.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/menu.py?rev=14695&r1=14694&r2=14695&view=diff ============================================================================== --- 1.3/gui/menu.py (original) +++ 1.3/gui/menu.py Mon Sep 19 17:42:49 2011 @@ -33,7 +33,7 @@ # relax GUI module imports. from gui import paths from gui.components.menu import build_menu_item -from gui.user_functions import User_functions; user_functions = User_functions() +from gui.user_functions import User_functions class Menu: @@ -188,6 +188,9 @@ @type event: wx event """ + # The user functions. + user_functions = User_functions(self.gui) + # Launch the user functions. user_functions.gpl.run() @@ -253,6 +256,9 @@ # Store the args. self.parent = parent self.menu = menu + + # The user functions. + user_functions = User_functions(self.parent) # Initialise some data structures. self.uf_names = {}