Idle-python3.2 Not Starting: Complains Of Nameerror: Name 'tk' Is Not Defined
running linux mint 13 idle-python3.2 did work from the terminal before, now it does not. Calling idle-python3.2 from the terminal throws the error below BUT I can run Idle by doub
Solution 1:
It sounds like you either a) named your little test program "tkinter.py", or b) you have another file in the same directory named "tkinter.py". If that is the case, when you do from tkinter import *
, you are not importing the real tkinter but rather importing the local file.
If you named your file "tkinter.py", rename it. Also, if there is a file named "tkinter.pyc", remove it.
Post a Comment for "Idle-python3.2 Not Starting: Complains Of Nameerror: Name 'tk' Is Not Defined"