Author: bugman Date: Fri Sep 16 15:44:57 2011 New Revision: 14671 URL: http://svn.gna.org/viewcvs/relax?rev=14671&view=rev Log: The UF_page base class now accepts the 'sync' argument. This will be used to allow for asynchronous or synchronous operation. Modified: 1.3/gui/user_functions/base.py Modified: 1.3/gui/user_functions/base.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/user_functions/base.py?rev=14671&r1=14670&r2=14671&view=diff ============================================================================== --- 1.3/gui/user_functions/base.py (original) +++ 1.3/gui/user_functions/base.py Fri Sep 16 15:44:57 2011 @@ -127,12 +127,17 @@ # The path to the user function. uf_path = None - def __init__(self, parent): + def __init__(self, parent, sync=False): """Set up the window. @param parent: The parent class containing the GUI. @type parent: class instance - """ + @keyword sync: A flag which if True will call user functions via interpreter.apply and if False via interpreter.queue. + @type sync: bool + """ + + # Store the args. + self.sync = sync # Yield to allow the cursor to be changed. wx.Yield()