mailr13726 - /branches/gui_testing/gui/analyses/base.py


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

Header


Content

Posted by edward on July 19, 2011 - 13:34:
Author: bugman
Date: Tue Jul 19 13:34:21 2011
New Revision: 13726

URL: http://svn.gna.org/viewcvs/relax?rev=13726&view=rev
Log:
The analysis base class method add_spin_element() now converts the default 
int value to a GUI string.


Modified:
    branches/gui_testing/gui/analyses/base.py

Modified: branches/gui_testing/gui/analyses/base.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/base.py?rev=13726&r1=13725&r2=13726&view=diff
==============================================================================
--- branches/gui_testing/gui/analyses/base.py (original)
+++ branches/gui_testing/gui/analyses/base.py Tue Jul 19 13:34:21 2011
@@ -34,7 +34,7 @@
 
 # relax GUI module imports.
 from gui import paths
-from gui.misc import str_to_gui
+from gui.misc import int_to_gui, str_to_gui
 
 
 class Base_frame:
@@ -160,7 +160,7 @@
         @keyword text:          The static text.
         @type text:             str
         @keyword default:       The default value of the control.
-        @type default:          str
+        @type default:          int
         @keyword min:           The minimum value allowed.
         @type min:              int
         @keyword max:           The maximum value allowed.
@@ -187,7 +187,7 @@
         sizer.AddSpacer((self.spacer_horizontal, -1))
 
         # The text input field.
-        field = self.add_spin_control(sizer, parent, text=default, 
control=control, min=min, max=max, height=size_horizontal)
+        field = self.add_spin_control(sizer, parent, 
text=int_to_gui(default), control=control, min=min, max=max, 
height=size_horizontal)
 
         # Spacer.
         sizer.AddSpacer((self.spacer_horizontal, -1))




Related Messages


Powered by MHonArc, Updated Tue Jul 19 14:20:01 2011