+ 1
What is the error in it??
from tkinter import * root = Tk() e = Entry(root).pack() def func(): l = Label(root,text=str(e.get())).pack() e.delete(0,END) bu = Button(root,text="click",command=func).pack() root.mainloop()
1 Réponse
0
from tkinter import *
root = Tk()
def func():
l.config(text=e.get())
e.delete(0,END)
e = Entry(root)
l = Label(root)
bu = Button(root,text="Click",command=func)
e.pack()
l.pack()
bu.pack()
root.mainloop()