Author: bugman
Date: Tue May 8 17:57:59 2012
New Revision: 16112
URL: http://svn.gna.org/viewcvs/relax?rev=16112&view=rev
Log:
Fix for the Selector_file GUI wizard page element - the default value cannot be
None.
The value of None was translated to wx.EmptyString too far down in the
initialisation, after it was
being used. This caused most file selection GUI elements to fail.
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=16112&r1=16111&r2=16112&view=diff
==============================================================================
--- branches/uf_redesign/gui/wizard_elements.py (original)
+++ branches/uf_redesign/gui/wizard_elements.py Tue May 8 17:57:59 2012
@@ -574,6 +574,10 @@
# Store the args.
self.name = name
+ # Argument translation.
+ if default == None:
+ default = wx.EmptyString
+
# Init.
sub_sizer = wx.BoxSizer(wx.HORIZONTAL)
@@ -603,8 +607,6 @@
sub_sizer.Add(self._field, 1,
wx.ADJUST_MINSIZE|wx.ALIGN_CENTER_VERTICAL, 0)
# The file selection object.
- if default == None:
- default = wx.EmptyString
obj = RelaxFileDialog(parent, field=self._field, message=message,
defaultFile=default, wildcard=wildcard, 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