#СозданиеВиджетовНажатиемНаКнопку

Код из видео:



from tkinter import *





def click():

Button(root, text='Кнопка', font='Arial 15 bold', command=click2).pack()

Label(root, text='Какой-то текст').pack()

Entry(root, width=10).pack()





def click2():

Label(root, text='click').pack(expand=1, anchor=E)

Label(root, text='click').pack(expand=1, anchor=W)





root = Tk()

root.geometry('700x700')

root.title('Виждеты')



btn = Button(root, text='Создать виджет', font='Arial 15 bold', command=click)

btn.pack()



root.mainloop()