X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2f90df854ed9630ab60ac7729287807e4d1d8286..a37a5a73c54c0e120f0a35fc02e3ac4b600a42ff:/utils/wxPython/demo/wxValidator.py diff --git a/utils/wxPython/demo/wxValidator.py b/utils/wxPython/demo/wxValidator.py index 3e8707a9ed..4217494c6b 100644 --- a/utils/wxPython/demo/wxValidator.py +++ b/utils/wxPython/demo/wxValidator.py @@ -73,13 +73,13 @@ class TestValidatorPanel(wxPanel): label = wxStaticText(self, -1, "Alpha Only: ") fgs.Add(label, 0, wxALIGN_RIGHT|wxCENTER) - fgs.Add(wxTextCtrl(self, -1, "", validator = MyValidator(ALPHA_ONLY)) + fgs.Add(wxTextCtrl(self, -1, "", validator = MyValidator(ALPHA_ONLY))) fgs.Add(1,VSPACE); fgs.Add(1,VSPACE) label = wxStaticText(self, -1, "Digits Only: ") fgs.Add(label, 0, wxALIGN_RIGHT|wxCENTER) - fgs.Add(wxTextCtrl(self, -1, "", validator = MyValidator(DIGITS_ONLY))) + fgs.Add(wxTextCtrl(self, -1, "", validator = MyValidator(DIGIT_ONLY))) border = wxBoxSizer() border.Add(fgs, 1, wxGROW|wxALL, 25)