On 27/03/2017 at 01:31, xxxxxxxx wrote:
Hi,
To keep track of the current webpage shown in a HtmlViewerCustomGui, a callback has to be registered.
Here's some code:
# In the dialog class define this function
def HtmlViewerCallback(self, user_data, url, encoding) :
print "Navigating to " + url
// In the dialog CreatLayout() sets the URL callback
htmlViewer.SetURLCallback(self.HtmlViewerCallback)
Note the user_data parameter passed to the callback is always None.
And the optional user_data that can be passed to HtmlViewerCustomGui.SetURLCallback() is not used because of the Python API implementation.
Also I'm afraid there's no way to get the link the mouse pointer is over.