Try importing tkinter like this:
import tkinter as tk
In Python 3.x, the tkinter
module's name starts with a lowercase letter, unlike in Python 2.x.
Also, avoid using wildcard imports, as they can make code less readable and prone to conflicts. Instead, just import tkinter
as tk
and use the tk
prefix.