]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ActiveX_IEHtmlWindow.py
fix building/running of tex2rtf
[wxWidgets.git] / wxPython / demo / ActiveX_IEHtmlWindow.py
index c1356e4debf4acda5758af6e6fe2a78e14355769..bd4749db927b725cd6bcb7dc4d7baa077b8ad78d 100644 (file)
@@ -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)