我需要帮助我刚刚编写的这个小代码:from tkinter import *root = Tk()e = Entry(root, width=20)e.grid(row=0, column=0)def btn_clicked(): label = Label(root, text=f"Hello {e.get()}!") label.grid(row=1, column=0)button = Button(root, padx=10, text="Click this", COMMAND=btn_clicked)button.grid(row=0, column=1)root.mainloop()
添加回答
举报
0/150
提交
取消