Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (120 points)
from tkinter import *

root = Tk()

def myclick():
    lab = Label(root, text=inp.get()).pack()


inp = Entry(root, width=40, borderwidth=5).pack()
but = Button(root, text="submit", command=myclick).pack()

root.mainloop()

Please log in or register to answer this question.

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

30.5k questions

32.5k answers

500 comments

108k users

Browse Categories

...