【问题标题】:Python 2.7.9 Mac OS 10.10.3 Message "setCanCycle: is deprecated. Please use setCollectionBehavior instead"Python 2.7.9 Mac OS 10.10.3 消息“setCanCycle:已弃用。请改用 setCollectionBehavior”
【发布时间】:2015-08-29 08:35:40
【问题描述】:

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

当我启动 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()

谁能帮我解释一下这条消息?

如何删除这条消息?

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

问候。

【问题讨论】:

    标签: python macos tkinter anaconda spyder


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-06-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-29
      • 2014-12-15
      • 2014-04-17
      • 2014-12-25
      相关资源
      最近更新 更多