【发布时间】: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