]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxIntCtrl.py
WinCE patches from "Viktor Voroshylo" <viktor@voroshylo.com>
[wxWidgets.git] / wxPython / demo / wxIntCtrl.py
index fb1bcb5ff0e39932c26214428b70411517c05114..d4c48a1cd31306c5c25e2d6129dc88ece44bcac9 100644 (file)
@@ -33,14 +33,14 @@ class TestPanel( wxPanel ):
         grid.AddWindow( self.max, 0, wxALIGN_LEFT|wxALL, 5 )
 
         grid.AddWindow( self.limit_target, 0, wxALIGN_LEFT|wxALL, 5 )
-        grid.AddSpacer( 20, 0, 0, wxALIGN_LEFT|wxALL, 5 )
+        grid.AddSpacer( (20, 0), 0, wxALIGN_LEFT|wxALL, 5 )
         grid.AddWindow( self.allow_none, 0, wxALIGN_LEFT|wxALL, 5 )
-        grid.AddSpacer( 20, 0, 0, wxALIGN_LEFT|wxALL, 5 )
+        grid.AddSpacer( (20, 0), 0, wxALIGN_LEFT|wxALL, 5 )
         grid.AddWindow( self.allow_long, 0, wxALIGN_LEFT|wxALL, 5 )
-        grid.AddSpacer( 20, 0, 0, wxALIGN_LEFT|wxALL, 5 )
+        grid.AddSpacer( (20, 0), 0, wxALIGN_LEFT|wxALL, 5 )
 
-        grid.AddSpacer( 20, 0, 0, wxALIGN_LEFT|wxALL, 5 )
-        grid.AddSpacer( 20, 0, 0, wxALIGN_LEFT|wxALL, 5 )
+        grid.AddSpacer( (20, 0), 0, wxALIGN_LEFT|wxALL, 5 )
+        grid.AddSpacer( (20, 0), 0, wxALIGN_LEFT|wxALL, 5 )
 
         grid.AddWindow( label, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
         grid.AddWindow( self.target_ctl, 0, wxALIGN_LEFT|wxALL, 5 )
@@ -287,7 +287,7 @@ value to fall within the current bounds.
 <DT><B>SetNoneAllowed(bool)</B>
 <DD>If called with a value of True, this function will cause the control
 to allow the value to be empty, representing a value of None.
-If called with a value of fakse, this function will prevent the value
+If called with a value of false, this function will prevent the value
 from being None.  If the value of the control is currently None,
 ie. the control is empty, then the value will be changed to that
 of the lower bound of the control, or 0 if no lower bound is set.