Merged wxPython 2.4.x to the 2.5 branch (Finally!!!)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user