mailr17478 - /trunk/gui/uf_objects.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on September 07, 2012 - 10:46:
Author: bugman
Date: Fri Sep  7 10:46:18 2012
New Revision: 17478

URL: http://svn.gna.org/viewcvs/relax?rev=17478&view=rev
Log:
Bug fix for the creation of the user function GUI pages - the (a)synchronous 
arg is now observed.

This argument was being ignored, which in some wizards was causing user 
function calls to be
asynchronous.  This can result in racing related crashes!


Modified:
    trunk/gui/uf_objects.py

Modified: trunk/gui/uf_objects.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/gui/uf_objects.py?rev=17478&r1=17477&r2=17478&view=diff
==============================================================================
--- trunk/gui/uf_objects.py (original)
+++ trunk/gui/uf_objects.py Fri Sep  7 10:46:18 2012
@@ -252,16 +252,20 @@
         self.wizard = None
 
 
-    def create_page(self, wizard=None, sync=False):
+    def create_page(self, wizard=None, sync=None):
         """Create the user function wizard page GUI object.
 
         @keyword wizard:    The parent wizard.
         @type wizard:       Wiz_window instance
         @keyword sync:      A flag which if True will call user functions 
via interpreter.apply and if False via interpreter.queue.
-        @type sync:         bool
+        @type sync:         None or bool
         @return:            The user function page object.
         @rtype:             Uf_page instance
         """
+
+        # Overwrite (a)synchronous operation.
+        if sync != None:
+            self._sync = sync
 
         # Initialise and return the page.
         return Uf_page(self._name, parent=wizard, 
height_desc=self._height_desc, sync=self._sync)




Related Messages


Powered by MHonArc, Updated Fri Sep 07 11:00:02 2012