Question: How do you create a **hyperlink** using a `Label` in Tkinter?

A quick search did not reveal how to do this. Instead there were only solutions to create a hyperlink in a `Text` widget.

Answer: 
Alternatively if you have multiple labels and want the one function for all. That is assuming you have the link as the text

```
import tkinter as tk
import webbrowser

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

root = tk.Tk()
lbl = tk.Label(root, text=r"http://www.google.com", fg="blue", cursor="hand2")
lbl.pack()
lbl.bind("<Button-1>", callback)
root.mainloop()

```
There is a module on [PyPi called tkhtmlview](https://pypi.org/project/tkhtmlview/) (`pip install tkhtmlview`) that supports HTML in tkinter. It only supports some tags, but on the page, it says that it has full support fro tags (anchor tags for hyperlinks), and supports the href attribute. It requires Python 3.4 or later with tcl/tk (tkinter) support and the Pillow 5.3.0 module. I haven't tried the tag yet, but I tried the module in general and it works.

As an example:

```
import tkinter as tk
from tkhtmlview import HTMLLabel

root = tk.Tk()
html_label=HTMLLabel(root, html='<a href="http://www.google.com"> Google Hyperlink </a>')
html_label.pack()
root.mainloop()

```