from tkinter import *


# Button function
def button_clicked():
    print("I got clicked.")
    new_text = in_put.get()
    my_label.config(text=new_text)


window = Tk()
window.title("My first GUI Programme")
window.minsize(width=500, height=300)
window.config(padx=100, pady=200)

# Label
my_label = Label(text="I am a Label.", font=("Arial", 24))
my_label["text"] = "New Text"
my_label.config(text="Latest Text")
my_label.grid(column=0, row=0)

# Button
button = Button(text="Click Me", command=button_clicked)
button.grid(column=1, row=1)

# New Button
new_button = Button(text="New Button")
new_button.grid(column=2, row=0)

# Entry
in_put = Entry(width=20)
print(in_put.get())
in_put.grid(column=3, row=2)








window.mainloop()
