Python 2.7.9 Mac OS 10.10.3已弃用消息"setCanCycle:".请改用setCollectionBehavior“ [英] Python 2.7.9 Mac OS 10.10.3 Message "setCanCycle: is deprecated. Please use setCollectionBehavior instead"

查看:150
本文介绍了Python 2.7.9 Mac OS 10.10.3已弃用消息"setCanCycle:".请改用setCollectionBehavior“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的第一个信息,希望您能帮助我解决我的问题.

This is my first message and i hope can you help me to solve my problem.

启动python脚本时,我收到以下消息:

When I launch a python script I have this message :

2015-06-10 23:15:44.146 python [1044:19431] setCanCycle:已弃用.请改用setCollectionBehavior

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:已弃用.请改用setCollectionBehavior

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()

谁可以帮助我解释此消息?

Who can help me to explain this message ?

如何删除此消息?

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

PS : I use Anaconda 3.10.0 and Spyder IDE, but I have the same problem when I launch my script with the terminal.

致谢.

推荐答案

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

The version of the Tkinter library which Anaconda has installed was compiled on an older version of OS X. The warnings your seeing aren't actually a problem and will go away once a version of the library compiled on a more recent version of OS X are added to the Anaconda repository. https://groups.google.com/a/continuum.io/forum/#!topic/anaconda/y1UWpFHsDyQ

这篇关于Python 2.7.9 Mac OS 10.10.3已弃用消息"setCanCycle:".请改用setCollectionBehavior“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆