X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0f9da07463f1134a2f8f51ee581fabcf968fa5c5..68fc5c8025e38b9d827383fbfe7ce509ae331c1f:/wxPython/demo/Validator.py diff --git a/wxPython/demo/Validator.py b/wxPython/demo/Validator.py index 688712c015..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() @@ -193,7 +193,7 @@ class TestValidateDialog(wx.Dialog): b.SetDefault() buttons.AddButton(b) buttons.AddButton(wx.Button(self, wx.ID_CANCEL, "Cancel")) - buttons.Finalise() + buttons.Realize() border = wx.BoxSizer(wx.VERTICAL) border.Add(fgs, 1, wx.GROW|wx.ALL, 25)