From: Robin Dunn Date: Thu, 30 Sep 1999 22:26:02 +0000 (+0000) Subject: fixed an error in the sample X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e918362128868b35e4e21ceda651a62794070a6f fixed an error in the sample git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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)