]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/mvctree.py
Give some more specific info if PyWin can't be imported when frozen in
[wxWidgets.git] / wxPython / wx / lib / mvctree.py
index dd84720c36d8350657ba003ecf0f95a142cbb015..eb49ea03de1b163335605472de5749f52f8878e8 100644 (file)
@@ -404,9 +404,9 @@ class FileEditor(Editor):
 
 
     def _key(self, evt):
-        if evt.KeyCode() == wx.WXK_RETURN:
+        if evt.GetKeyCode() == wx.WXK_RETURN:
             self.EndEdit(True)
-        elif evt.KeyCode() == wx.WXK_ESCAPE:
+        elif evt.GetKeyCode() == wx.WXK_ESCAPE:
             self.EndEdit(False)
         else:
             evt.Skip()