def OnLinkClicked ( self, link_info ):
        if self.open_externally:
            url = link_info.GetHref()
            if (self.base_url and
                not url.startswith( ( 'http://', 'https://' ) )):
                url = self.base_url + url
            if not url.startswith( ( 'file://', 'http://', 'https://' ) ):
                url = 'file://' + url
            webbrowser.open_new( url )
Handle the base url and opening in a new browser window for links.
dataset/ETHPy150Open enthought/traitsui/traitsui/wx/html_editor.py/URLResolvingHtmlWindow.OnLinkClicked