]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/samples/hangman/hangman.py
PyCrust now has an option for showing/hiding the notebook.
[wxWidgets.git] / wxPython / samples / hangman / hangman.py
index fcf555e1757ac3b79daa7d716191234f7530689b..bde822cc9672eb589ea21d79c27992f7039fd4f3 100644 (file)
@@ -395,7 +395,7 @@ class MyFrame(wx.Frame):
             #print "new"
             self.OnGameNew(None)
             return
-        key = event.KeyCode();
+        key = event.GetKeyCode();
         #print key
         if key >= ord('A') and key <= ord('Z'):
             key = key + ord('a') - ord('A')