X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fa876ca9ec87e90605808bfcab4d4226965dbad..6a6e2822455ac3275dad20d5a0b474e4eb4b2582:/wxPython/demo/GridEnterHandler.py diff --git a/wxPython/demo/GridEnterHandler.py b/wxPython/demo/GridEnterHandler.py index 0b6971b033..638eac61b5 100644 --- a/wxPython/demo/GridEnterHandler.py +++ b/wxPython/demo/GridEnterHandler.py @@ -1,7 +1,3 @@ -# 11/6/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o Updated for wx namespace -# import wx import wx.grid as gridlib @@ -24,7 +20,7 @@ class NewEnterHandlingGrid(gridlib.Grid): def OnKeyDown(self, evt): - if evt.KeyCode() != wx.WXK_RETURN: + if evt.GetKeyCode() != wx.WXK_RETURN: evt.Skip() return