from wxPython.wx import *
-import string
 
 
 class floatValidator(wxPyValidator):
         if self.obj and self.attrName:
             tc = wxPyTypeCast(self.GetWindow(), "wxTextCtrl")
             text = tc.GetValue()
-            setattr(self.obj, self.attrName, string.atof(text))
+            setattr(self.obj, self.attrName, float(text))
         return true