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
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to