Python 2.7.9 Mac OS 10.10.3消息"setCanCycle:不推荐.请改用setCollectionBehavior"

nek*_*orp 5 python macos tkinter spyder anaconda

这是我的第一条消息,我希望你能帮助我解决我的问题.

当我启动python脚本时,我有这样的消息:

2015-06-10 23:15:44.146 python [1044:19431] setCanCycle:不推荐使用.请改用setCollectionBehavior

2015-06-10 23:15:44.155 python [1044:19431] setCanCycle:不推荐使用.请改用setCollectionBehavior

在我的脚本下面:

from Tkinter import *

root = Tk()

root.geometry("450x600+10+10")
root.title("Booleanv1.0")

Cadre_1 = Frame(root, width=400, height=100)
Cadre_1.pack(side='top')

fileA = Label(Cadre_1, text="File A")
fileA.grid(row=0,column=0)
entA = Entry(Cadre_1, width=40)
entA.grid(row=0,column=1, pady=10)
open_fileA = Button(Cadre_1, text='SELECT', width=10, height=1, command = root.destroy)
open_fileA.grid(row=0, column=2)

fileB = Label(Cadre_1, text="File B")
fileB.grid(row=1,column=0)
entB = Entry(Cadre_1, width=40)
entB.grid(row=1,column=1, pady=10)
open_fileB = Button(Cadre_1, text='SELECT', width=10, height=1, command = root.destroy)
open_fileB.grid(row=1, column=2)


root.mainloop()
Run Code Online (Sandbox Code Playgroud)

谁能帮我解释这个消息?

我怎么能删除此消息?

PS:我使用Anaconda 3.10.0和Spyder IDE,但是当我用终端启动脚本时遇到同样的问题.

问候.

Sil*_*lly 9

Anaconda安装的Tkinter库的版本是在较旧版本的OS X上编译的.您看到的警告实际上并不是问题,并且一旦在更新版本的OS X上编译的库的版本是添加到Anaconda存储库. https://groups.google.com/a/continuum.io/forum/#!topic/anaconda/y1UWpFHsDyQ