import tkinter as tk

def open_link(event):
    webbrowser.open_new(event.widget.cget("text"))

root = tk.Tk()
text = tk.Text(root, wrap='word')
text.insert('1.0', 'Click <a href="https://www.google.com">here</a> to open Google')
text.tag_configure("a", foreground="blue", underline=1)
text.tag_bind("a", "<Button-1>", open_link)
text.pack()
root.mainloop()