Ads Here

Wednesday, 2 December 2020

Tkinter Entry - Python

Code:

 from tkinter import *

root = Tk()

Entey = Entry(root ,width=50, bg="blue" ,fg="white", borderwidth=50)
Entey.pack()


def Entry():
    helo = "Hello " + Entey.get()
    myLabel = Label(root, text=helo)
    myLabel.pack()

#Pady = height , padx = width
myButtom = Button(root, text="Name", command=myClick , bg="powderblue" , width=50 , borderwidth=10)
myButtom.pack()

root.mainloop()

 


Email = sarvesh9443382135@gmail.com

No comments:

Post a Comment