mailr13433 - /branches/gui_testing/gui/misc.py


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

Header


Content

Posted by edward on July 06, 2011 - 10:30:
Author: bugman
Date: Wed Jul  6 10:30:36 2011
New Revision: 13433

URL: http://svn.gna.org/viewcvs/relax?rev=13433&view=rev
Log:
Created the bool_to_gui() function.


Modified:
    branches/gui_testing/gui/misc.py

Modified: branches/gui_testing/gui/misc.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/misc.py?rev=13433&r1=13432&r2=13433&view=diff
==============================================================================
--- branches/gui_testing/gui/misc.py (original)
+++ branches/gui_testing/gui/misc.py Wed Jul  6 10:30:36 2011
@@ -68,6 +68,19 @@
     return sizer_cent
 
 
+def bool_to_gui(bool):
+    """Convert the bool into the GUI string.
+
+    @param num:     The boolean value of True or False.
+    @type num:      bool
+    @return:        The GUI string.
+    @rtype:         str
+    """
+
+    # Convert.
+    return unicode(bool)
+
+
 def convert_to_float(string):
     """Method to convert a string like '1.02*1e-10' to a float variable.
 




Related Messages


Powered by MHonArc, Updated Wed Jul 06 10:40:02 2011