Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
wx.html2.EVT_WEBVIEW_NAVIGATING is not called in Ubuntu 16.04 #741
Operating system: Ubuntu 16.04
In Ubuntu 16.04 with Python 3.5 wx.html2.EVT_WEBVIEW_NAVIGATING is not called when clicking on a link in the loaded with wx.html2.WebView class HTML file.
In Ubuntu 17.10 with Python 3.6 the event work fine.
The problem turned out to be more interesting than I thought at first.
With WebKit1 the EVT_WEBVIEW_NAVIGATING event work fine, but with WebKit2 the event is not called. It turns out that in Ubuntu 17.10 I did not have the libwebkit2gtk -...- dev library installed (and everything worked perfectly).
In Ubuntu 16.04 I have libwebkitgtk-3.0-dev and libwebkit2gtk-4.0-dev and the EVT_WEBVIEW_NAVIGATING event is not called.
The problem with WebKit2, but not WebKit1. The Ubuntu version is not important.
PS. The EVT_WEBVIEW_NAVIGATED and EVT_WEBVIEW_LOADED events is called with WebKit1 and WebKit2.