mailr13412 - /branches/gui_testing/gui/wizard.py


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

Header


Content

Posted by edward on July 04, 2011 - 11:29:
Author: bugman
Date: Mon Jul  4 11:29:19 2011
New Revision: 13412

URL: http://svn.gna.org/viewcvs/relax?rev=13412&view=rev
Log:
The structure.load_spin user function window spin ID field is now a combo box 
defaulting to '@N'.

This is in the wizard base page spin_id_element() method and the choices are 
currently '@N' and
'@C', but any value can be used.


Modified:
    branches/gui_testing/gui/wizard.py

Modified: branches/gui_testing/gui/wizard.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/wizard.py?rev=13412&r1=13411&r2=13412&view=diff
==============================================================================
--- branches/gui_testing/gui/wizard.py (original)
+++ branches/gui_testing/gui/wizard.py Mon Jul  4 11:29:19 2011
@@ -717,9 +717,12 @@
         sub_sizer.AddSpacer((divider - x, 0))
 
         # The input field.
-        field = wx.TextCtrl(self, -1, '')
+        field = wx.ComboBox(self, -1, '', choices=['@N', '@C'])
         field.SetMinSize((50, 27))
         sub_sizer.Add(field, 1, wx.ALIGN_CENTER_VERTICAL, 0)
+
+        # Set the default to nitrogen.
+        field.SetValue(str_to_gui('@N'))
 
         # Right padding.
         sub_sizer.AddSpacer(padding)




Related Messages


Powered by MHonArc, Updated Mon Jul 04 12:00:02 2011