X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c4ef95daf6eeae5e6a7d4e591bb96c44f8588249..d24a9fc7686f9190fa32e3b5fe322d14f7c43e7c:/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)