X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c15cc56f2d829c87360fdcadd93646c4b991706c..9d5244b1eeb78a5b9be933045edb949f319e26e9:/wxPython/wx/py/shell.py diff --git a/wxPython/wx/py/shell.py b/wxPython/wx/py/shell.py index 6f89357ddd..fe60b38221 100644 --- a/wxPython/wx/py/shell.py +++ b/wxPython/wx/py/shell.py @@ -354,7 +354,7 @@ class Shell(editwindow.EditWindow): def setBuiltinKeywords(self): """Create pseudo keywords as part of builtins. - This sets `close`, `exit` and `quit` to a helpful string. + This sets "close", "exit" and "quit" to a helpful string. """ import __builtin__ __builtin__.close = __builtin__.exit = __builtin__.quit = \ @@ -417,7 +417,7 @@ Platform: %s""" % \ # commands/responses. if not self.CanEdit(): return - key = event.KeyCode() + key = event.GetKeyCode() currpos = self.GetCurrentPos() stoppos = self.promptPosEnd # Return (Enter) needs to be ignored in this handler. @@ -452,7 +452,7 @@ Platform: %s""" % \ def OnKeyDown(self, event): """Key down event handler.""" - key = event.KeyCode() + key = event.GetKeyCode() # If the auto-complete window is up let it do its thing. if self.AutoCompActive(): event.Skip()