X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c4ef95daf6eeae5e6a7d4e591bb96c44f8588249..175fd114d329e9cfc247942f998a3ffd2c9829c2:/wxPython/demo/ActiveX_IEHtmlWindow.py diff --git a/wxPython/demo/ActiveX_IEHtmlWindow.py b/wxPython/demo/ActiveX_IEHtmlWindow.py index c1356e4deb..bd4749db92 100644 --- a/wxPython/demo/ActiveX_IEHtmlWindow.py +++ b/wxPython/demo/ActiveX_IEHtmlWindow.py @@ -105,7 +105,7 @@ class TestPanel(wx.Panel): self.ie.Navigate(url) def OnLocationKey(self, evt): - if evt.KeyCode() == wx.WXK_RETURN: + if evt.GetKeyCode() == wx.WXK_RETURN: URL = self.location.GetValue() self.location.Append(URL) self.ie.Navigate(URL)