When I try to use the tkinter module for creating a text and graphic I always get NameError: name 'Frame' is not defined. What is frustrating is that it worked earlier but now has the error. Am using Python 3 + and Anaconda3. I'm doing the code from the basic tutorial but I have also used other code from the net. The _init_.py file is where it should be on my machine: C:UsersIXAnaconda3Libtkinter. I'm using spyder but it get the same error with Jupyter notebook. All other modules are working fine and I downloaded pillow with no problems. Here is the code from the tutorial, I removed the comments: Any suggestions or thoughts are appreciated. <pre class='prettyprint lang-py'> from tkinter import * from PIL import Image, ImageTk
You must be logged in to post. Please login or register an account.
I made a stupid mistake by pasting the tutorial code in the _ini_py file without realizing it and that is why I got the error. Sorry for that. I just have to find a new file to replace it.
-nomadsoul 7 years ago
You must be logged in to post. Please login or register an account.