X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/71f1747cd5ae2940688c7227cbac43dc98ea5140..b4eecebd423df0c6efe86d7658cd3df818d67ed8:/wxPython/demo/StyledTextCtrl_2.py diff --git a/wxPython/demo/StyledTextCtrl_2.py b/wxPython/demo/StyledTextCtrl_2.py index e84bee509b..2c043c9155 100644 --- a/wxPython/demo/StyledTextCtrl_2.py +++ b/wxPython/demo/StyledTextCtrl_2.py @@ -185,7 +185,7 @@ class PythonSTC(stc.StyledTextCtrl): def OnKeyPressed(self, event): if self.CallTipActive(): self.CallTipCancel() - key = event.KeyCode() + key = event.GetKeyCode() if key == 32 and event.ControlDown(): pos = self.GetCurrentPos()