code: def on_text_url(self, event):
          '''handle double clicks on URL text'''
          try:
              import webbrowser
          except ImportError:
              return
          mouse_event = event.GetMouseEvent()
          if mouse_event.LeftDClick():
              url_start = event.GetURLStart()
              url_end = event.GetURLEnd()
              url = self.control.GetRange(url_start, url_end)
              try:
                  # attempt to use google-chrome
                  browser_controller = webbrowser.get('google-chrome')
                  browser_controller.open_new_tab(url)
              except webbrowser.Error:
                  # use the system configured default browser
                  webbrowser.open_new_tab(urlf on_text_url(self, event):
          '''handle double clicks on URL text'''
          try:
              import webbrowser
          except ImportError:
              return
          mouse_event = event.GetMouseEvent()
          if mouse_event.LeftDClick():
              url_start = event.GetURLStart()
              url_end = event.GetURLEnd()
              url = self.control.GetRange(url_start, url_end)
              try:
                  # attempt to use google-chrome
                  browser_controller = webbrowser.get('google-chrome')
                  browser_controller.open_new_tab(url)
              except webbrowser.Error:
                  # use the system configured default browser
                  webbrowser.open_new_tab(url)
docs: handle double clicks on URL text