Author: bugman
Date: Tue May  8 19:09:43 2012
New Revision: 16120

URL: http://svn.gna.org/viewcvs/relax?rev=16120&view=rev
Log:
Fix for the Selector_dir class - the default of None needs to be converted to 
wx.EmptyString early.

This was causing TypeErrors in the wizard pages.


Modified:
    branches/uf_redesign/gui/wizard_elements.py

Modified: branches/uf_redesign/gui/wizard_elements.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/wizard_elements.py?rev=16120&r1=16119&r2=16120&view=diff
==============================================================================
--- branches/uf_redesign/gui/wizard_elements.py (original)
+++ branches/uf_redesign/gui/wizard_elements.py Tue May  8 19:09:43 2012
@@ -444,6 +444,10 @@
         # Store the args.
         self.name = name
 
+        # Argument translation.
+        if default == None:
+            default = wx.EmptyString
+
         # Init.
         sub_sizer = wx.BoxSizer(wx.HORIZONTAL)
 
@@ -473,8 +477,6 @@
         sub_sizer.Add(self._field, 1, 
wx.ADJUST_MINSIZE|wx.ALIGN_CENTER_VERTICAL, 0)
 
         # The directory selection object.
-        if default == None:
-            default = wx.EmptyString
         obj = RelaxDirDialog(parent, field=self._field, message=message, 
defaultPath=default, style=style)
 
         # A little spacing.


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-commits mailing list
[email protected]

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to