mailr20261 - /trunk/gui/analyses/wizard.py


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

Header


Content

Posted by edward on July 09, 2013 - 11:37:
Author: bugman
Date: Tue Jul  9 11:37:34 2013
New Revision: 20261

URL: http://svn.gna.org/viewcvs/relax?rev=20261&view=rev
Log:
Fix for the new analysis wizard when running the GUI tests.

If the create_button() method is called without a function argument, the 
wizard is still created.
This is triggered in the relax_disp branch on certain systems.


Modified:
    trunk/gui/analyses/wizard.py

Modified: trunk/gui/analyses/wizard.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/gui/analyses/wizard.py?rev=20261&r1=20260&r2=20261&view=diff
==============================================================================
--- trunk/gui/analyses/wizard.py (original)
+++ trunk/gui/analyses/wizard.py Tue Jul  9 11:37:34 2013
@@ -306,7 +306,8 @@
         box.Add(button)
 
         # Bind the click.
-        self.Bind(wx.EVT_BUTTON, fn, button)
+        if fn != None:
+            self.Bind(wx.EVT_BUTTON, fn, button)
 
         # The button is disabled.
         if disabled:




Related Messages


Powered by MHonArc, Updated Tue Jul 09 12:20:02 2013