from tkinter import
def hide show1():
if result.get()
label Label (root, image img2)
else: label Label (root, image-img1)
label.place(x=200, у=20)
text.delete(1.0, END)
text.insert(1.0, "Парик місто любові і мрія, в яку неможливо не закохатися")
def hide show2():
if result.get()==1:
label Label (root, image img4)
else:
label-Label(root, image img3)
label.place(x-200,y=20)
text.delete(1.0, END)
text.insert(1.0, "Лондон одне з найбілих багато гранних міст у світі, яке увібрало в себе не тільки традиції Британії")
def hide show3():
if result.get()1:
label Label (root, image img6)
else:
name label
label Label (root,image img5)
label.place(x=200,y=20) text.delete(1.0, END)
20 text.insert(1.0, сто любові і мрія, в яку неможливо не закохати
root Tk()
root.geometry('800x300)
root.title("Столиці") img1-PhotoImage(file='paris.png")
img2-PhotoImage(file='paris2.png')
img3 PhotoImage(files'london.png')
img4-PhotoImage(file='london2.png")
img5-PhotoImage(file 'berlin.png')
img6-PhotoImage(file='berlin2.png")
label Label(root,image-img1)
btn1 Button (root, text» "Парик", width=10, command hide showl)
btn1.place(x=50,y=50)
btn2-Button (root, text="Лондон", width=10, command-hide_show2)
btn2.place(x=50,y=100)
btn3-Button(root, text» Sepnin', width=
btn3.place(x=50,y=150)
result-IntVar()
praporets Checkbutton(root, text="нічні фото", variable result, onvalue1, offvalue, height=5, width=20)
praporets.place(x,y=200)
Tabel
Dine 20
text Text(root, width=25, height=14,wrap-WORD)