]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/shell.py
added missing button state
[wxWidgets.git] / wxPython / wx / lib / shell.py
index 428a2cbbef43ada6af7599c117b23099c37fa444..0f78ac3ed5c9c13182d95e6f27535defc330fe2b 100644 (file)
@@ -109,7 +109,7 @@ class PyShellInput(wx.Panel):
     def OnChar(self, event):
         """called on CHARevent.  executes input on newline"""
         # print "On Char:", event.__dict__.keys()
-        if event.KeyCode() !=wx.WXK_RETURN:
+        if event.GetKeyCode() !=wx.WXK_RETURN:
             # not of our business
             event.Skip()
             return