]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/intctrl.py
corrected exit/about menu command ids in the code after replacing them with the stock...
[wxWidgets.git] / wxPython / wx / lib / intctrl.py
index 65ff2e58fac525f009aa347ed0545f3683ce3f8c..897045a5069b4a169321393b75ac4acdc29687e9 100644 (file)
@@ -109,7 +109,7 @@ class IntValidator( wx.PyValidator ):
         selected.  Leading zeros are removed if introduced by selection,
         and are prevented from being inserted.
         """
         selected.  Leading zeros are removed if introduced by selection,
         and are prevented from being inserted.
         """
-        key = event.KeyCode()
+        key = event.GetKeyCode()
         ctrl = event.GetEventObject()
 
 
         ctrl = event.GetEventObject()