X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fa876ca9ec87e90605808bfcab4d4226965dbad..6d99eb3e379fc5cdb835f9a87f92b612ec58dd1c:/wxPython/demo/GridEnterHandler.py?ds=inline 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