X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/718903fe6402bb374a801e43e856b02204401204..f5766910b6731eb03e82371416e9778203396ce7:/wxPython/demo/Validator.py?ds=sidebyside diff --git a/wxPython/demo/Validator.py b/wxPython/demo/Validator.py index 31dd044967..0b83c95595 100644 --- a/wxPython/demo/Validator.py +++ b/wxPython/demo/Validator.py @@ -34,7 +34,7 @@ class MyValidator(wx.PyValidator): def OnChar(self, event): - key = event.KeyCode() + key = event.GetKeyCode() if key < wx.WXK_SPACE or key == wx.WXK_DELETE or key > 255: event.Skip()