def reply():
imya=textBox.get()
label.configure(text=imya)
from tkinter import *
root = Tk()
root.title("Найпростіше вікно")
root.geometry("400x100")
label = Label (root, text="Hello, world!")
label.pack()
knopka=Button(root, text="Useless button", command=reply)
knopka.pack(side=TOP, padx=5, pady=5)
textBox = Entry (root)
textBox.pack(padx=5, pady=5)
root.mainloop()
def reply():
imya=textBox.get()
label.configure(text=imya)
from tkinter import *
root = Tk()
root.title("Найпростіше вікно")
root.geometry("400x100")
label = Label (root, text="Hello, world!")
label.pack()
knopka=Button(root, text="Useless button", command=reply)
knopka.pack(side=TOP, padx=5, pady=5)
textBox = Entry (root)
textBox.pack(padx=5, pady=5)
root.mainloop()