[Tutor] Another question about GUI applications.

Steven D'Aprano steve at pearwood.info
Tue Nov 8 23:41:25 CET 2011


Nathaniel Trujillo wrote:

> Traceback (most recent call last):
>   File "C:\Python31\mad_lib.py.py", line 112, in <module>
>     root = Tkinter.Tk()
> NameError: name 'Tkinter' is not defined

You have to import the Tkinter module first:

import Tkinter


-- 
Steven



More information about the Tutor mailing list