X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fa876ca9ec87e90605808bfcab4d4226965dbad..8145496b9bd1cbccf7411c5e76f72a9dfc7ebf1b:/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