More Python2 migrations, patch from KA.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-01-21 00:04:37 +00:00
parent f86c833fe0
commit 76bad85642
11 changed files with 13 additions and 16 deletions

View 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