]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/StyledTextCtrl_2.py
Another package name fix
[wxWidgets.git] / wxPython / demo / StyledTextCtrl_2.py
index e84bee509bd633725e2b75c7b528ee302e590d11..2c043c9155e9bcd5ebe0f1b4cda87f5ea4a7cf15 100644 (file)
@@ -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()