为什么Tkinter条目的GET函数不返回任何内容?
Entry
get()
from tkinter import *master = Tk()Label(master, text="Input: ").grid(row=0, sticky=W)entry = Entry(master)entry.grid(row=0, column=1)content = entry.get()print(content) # does not workmainloop()
Entry
entry
相关分类