python tcl,Python tcl没有正确安装

I just installed graphics.py for python. Then, when I tried to run the following code:

from graphics import *

def main():

win = GraphWin("My Circle", 100, 100)

c = Circle(Point(50,50), 10)

c.draw(win)

win.getMouse() # Pause to view result

win.close() # Close window when done

main()

My interpreter gave me this strange information:

Traceback (most recent call last):

File "F:\CS 101\Python\projects\packer.py", line 8, in

from graphics import *

File "F:\CS 101\Python\lib\site-packages\graphics.py", line 168, in

_root = tk.Tk()

File "F:\CS 101\Python\lib\tkinter\__init__.py", line 1674, in __init__

self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)

_tkinter.Tcl

你可能感兴趣的:(python,tcl)