[Tutor] import tkinter as tk

Rex Sunnlotus at aol.com
Mon Apr 2 21:15:00 EDT 2018


At the Python command prompt, I write:

import tkinter as tk
top = Tk()

Traceback (most recent call last):
File “<stdin>”, line 1, in module
NameError: name ‘Tk’ is not defined

I see under my Python36 directories for both the Lib and libs directories both of which have a directory or file referencing tkinter.  

Why is a blank window not loaded?

Sent from my iPhone


More information about the Tutor mailing list