Author: bugman Date: Wed Dec 22 17:19:06 2010 New Revision: 11949 URL: http://svn.gna.org/viewcvs/relax?rev=11949&view=rev Log: The spin object type is now simply 'int', 'str', 'bool', etc. Modified: branches/bieri_gui/gui_bieri/components/spin_view.py Modified: branches/bieri_gui/gui_bieri/components/spin_view.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/components/spin_view.py?rev=11949&r1=11948&r2=11949&view=diff ============================================================================== --- branches/bieri_gui/gui_bieri/components/spin_view.py (original) +++ branches/bieri_gui/gui_bieri/components/spin_view.py Wed Dec 22 17:19:06 2010 @@ -26,7 +26,7 @@ # Python module imports. from re import search -from string import replace +from string import replace, split import wx # relax module imports. @@ -451,8 +451,11 @@ # Get the object. obj = getattr(spin, name) + # The type. + obj_type = split(str(type(obj)), "'")[1] + # Add the data to the list. - table.Append((name, obj, type(obj))) + table.Append((name, obj, obj_type)) # Add the table to the sizer. sizer.Add(table, 1, wx.ALL|wx.EXPAND, 0)