"from tkinter import *" not working?

I am trying to learn tkinter and how to make GUIs with it, but PyCharm is giving me an error as "Unresolved reference 'Tk' "
My code:

from tkinter import *

root = Tk()
0
2 comments

Hi, 

It's important to know if the issue is related to code insight, or to the interpreter. Does the code actually run?

0

Try this one:

import tkinter as tk
root = tk.Tk()
0

Please sign in to leave a comment.