Tkinter date -- 17/08/2026

 import tkinter as tk


root=tk.Tk()


root.title("New One")


root.geometry("500x500")


l1=tk.Label(root,text="Enter your name")

l1.grid(row=0,column=0)


ent=tk.Entry(root)

ent.grid(row=0,column=1)


def dis():

    output=ent.get()

    print(output)


btn=tk.Button(root,text="Submit",command=dis)

btn.grid(row=1,column=0)


root.mainloop()

Comments

Popular posts from this blog

Requests and Urllib

Strings in C Language

Dictionary in Python