Author: bugman Date: Mon Oct 21 11:36:36 2013 New Revision: 21197 URL: http://svn.gna.org/viewcvs/relax?rev=21197&view=rev Log: The dispersion GUI analysis cluster_update() method is now thread safe. This removes many error messages when running the dispersion analysis in the GUI, especially for Mac OS X systems. Modified: branches/relax_disp/gui/analyses/auto_relax_disp.py Modified: branches/relax_disp/gui/analyses/auto_relax_disp.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_disp/gui/analyses/auto_relax_disp.py?rev=21197&r1=21196&r2=21197&view=diff ============================================================================== --- branches/relax_disp/gui/analyses/auto_relax_disp.py (original) +++ branches/relax_disp/gui/analyses/auto_relax_disp.py Mon Oct 21 11:36:36 2013 @@ -634,7 +634,7 @@ # Nothing yet. if not len(cluster_keys): - self.field_cluster.SetValue("free spins") + wx.CallAfter(self.field_cluster.SetValue, "free spins") # List the clusters. else: @@ -647,7 +647,7 @@ text += ", %s" % cluster_keys[i] # Update the text. - self.field_cluster.SetValue(text) + wx.CallAfter(self.field_cluster.SetValue, text) def value_set(self, event=None):