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: