import tkinter
window = tkinter.Tk()
window.configure(background="grey90")
window.title("Downloader")
window.geometry("300x300")
window.resizable(False, False)
entry = tkinter.Entry(window)
entry.place(x=70,y=68)
entry.configure(highlightbackground="grey90")
button = tkinter.Button(window, text="Download",
command=window.destroy, highlightbackground="grey90")
button.place(x=110,y=120)
to_download = entry.get()
window.mainloop()
print(to_download)
您好,在单击“下载”按钮后,我需要一些帮助来存储输出,我想要的是单击“下载”按钮时要存储的值(如果未放置输入)和要关闭的窗口。to_downloadNone
现在窗口正在关闭,但它没有存储值
梵蒂冈之花
慕妹3146593
相关分类