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:
		@@ -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