Python 2.7.9在Mac OS 10.10.3下出现消息“setCanCycle:已弃用,请使用setCollectionBehavior”,请使用setCollectionBehavior替代。

5
这是我的第一条留言,希望您能帮我解决问题。
当我启动一个 Python 脚本时,会出现以下信息:

2015-06-10 23:15:44.146 python[1044:19431] setCanCycle: is deprecated.Please use setCollectionBehavior instead

2015-06-10 23:15:44.155 python[1044:19431] setCanCycle: is deprecated.Please use setCollectionBehavior instead

以下是我的脚本:
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()

谁能帮我解释一下这个信息?

我该如何去掉这个信息?

注:我使用的是Anaconda 3.10.0和Spyder IDE,但是当我在终端上运行我的脚本时,遇到了相同的问题。

谢谢。

1个回答

9

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接