Hi guys,
I want to show a window using Tkinter, the code just looks like:
try:
# Python2
import Tkinter as tk
except ImportError:
# Python3
import tkinter as tk
def main():
win=graphics.GraphWin()
print win.getWidth()
but Pyscripter give me the error information:
Traceback (most recent call last):
File "<string>", line 254, in run_nodebug
File "D:\GoCloud\code\topic\drawpoints.py", line 17, in <module>
import tkinter as tk
ImportError: No module named tkinter
but in the command environment, there is no error. What's wrong with Pyscripter? my Pyscripter version is 2.6 x64