X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e4a197e4c60e461b8068b0619692ea083e30b8b..80a81a12af49ab6acdaf0b62f4aa55e56f45ac6d:/wxPython/demo/wxIntCtrl.py diff --git a/wxPython/demo/wxIntCtrl.py b/wxPython/demo/wxIntCtrl.py index fb1bcb5ff0..d4c48a1cd3 100644 --- a/wxPython/demo/wxIntCtrl.py +++ b/wxPython/demo/wxIntCtrl.py @@ -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.
SetNoneAllowed(bool)
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.