Загрузка данных


from tkinter import *

window = Tk()
panza = Canvas(window, height = 400, width = 400, bg = 'white')
panza.pack()

panza.create_rectangle(20,20,40,380,fill='brown',outline='black')

panza.create_rectangle(40,20,170,105,fill='white',outline='black')
panza.create_rectangle(170,20,300,105,fill='red',outline='black')
panza.create_rectangle(40,105,170,190,fill='blue',outline='black')
panza.create_rectangle(170,105,300,190,fill='white',outline='black')

panza.create_polygon(105,40,110,55,125,55,113,65,118,80,105,70,92,80,97,65,85,55,100,55,fill='blue',outline='black')
panza.create_polygon(235,125,240,140,255,140,243,150,248,165,235,155,222,165,227,150,215,140,230,140,fill='red',outline='black')

panza.create_text(200, 250,text="Drapel Panama",fill='red',font=('Arial', 12, 'bold'))
panza.create_text(200, 270,text="Student: Timbalist Egor",fill='black',font=('Arial', 12, 'bold'))
panza.create_text(200, 290,text="UTM, FD, Gr. DI-251",fill='blue',font=('Arial', 12, 'bold'))

window.mainloop()