我正在tkinter
尝试我的第一步。我在Python 3.5.1 | Anaconda 4.0.0中使用Spyder
作为IDE。
我想在下面运行非常简单的脚本,但它总是会让我的Spyder崩溃。在正常的shell / bash中,它会运行并打开画布。
import tkinter as tkr
tk = tkr.Tk()
canvas = tkr.Canvas(tk, width=500, height=500)
canvas.grid()
tk.mainloop()
在Ipython控制台的Preferences
下,我已经尝试了不同的设置(即Qt,Automatik,Tkinter),但没有一个能提供帮助。
我做错了什么(我怎样才能做得更好)?
非常感谢提前
答案 0 :(得分:4)
更新到Spyder 3.0.1
https://pythonhosted.org/spyder/
https://github.com/spyder-ide/spyder/releases/tag/v3.0.1
我刚刚在胜利10中做到了这一点:没有崩溃,空白了#34; tk"单独的窗口
答案 1 :(得分:1)