]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/tests/val.py
Lesstif compilation fix.
[wxWidgets.git] / wxPython / tests / val.py
index 9a05123019cad67772ea41517f9d49fab8d03150..d36f0c092c8533b01b54d386edaa490fce01105c 100644 (file)
@@ -1,5 +1,4 @@
 from wxPython.wx import *
-import string
 
 
 class floatValidator(wxPyValidator):
@@ -24,7 +23,7 @@ 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