]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/GridEnterHandler.py
fixed child windows scrolling to use wxSIZE_ALLOW_MINUS_ONE
[wxWidgets.git] / wxPython / demo / GridEnterHandler.py
index 0b6971b0333a12987153f1246b5d41b85afdaaec..638eac61b57468ecce9bfc30c186e78cd45ceff9 100644 (file)
@@ -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