mailr13865 - /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 25, 2011 - 18:13:
Author: bugman
Date: Mon Jul 25 18:13:10 2011
New Revision: 13865

URL: http://svn.gna.org/viewcvs/relax?rev=13865&view=rev
Log:
Created the gui.misc.list_to_gui() function for converting Python lists to 
GUI strings.


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=13865&r1=13864&r2=13865&view=diff
==============================================================================
--- branches/gui_testing/gui/misc.py (original)
+++ branches/gui_testing/gui/misc.py Mon Jul 25 18:13:10 2011
@@ -276,6 +276,23 @@
     return str(string)
 
 
+def list_to_gui(list):
+    """Convert the list into the GUI string.
+
+    @param list:    The Python list.
+    @type list:     list
+    @return:        The GUI string.
+    @rtype:         str
+    """
+
+    # No input.
+    if list == None:
+        list = ''
+
+    # Convert.
+    return unicode(list)
+
+
 def protected_exec(fn, *args, **kargs):
     """Apply the given function, catching all RelaxErrors.
 




Related Messages


Powered by MHonArc, Updated Mon Jul 25 19:00:02 2011