Объяснение:
import tkinter
master = tkinter.Tk()
canvas = tkinter.Canvas(master, bg='white', height=600, width=600)
canvas.create_rectangle((10, 10), (100, 100), fill='red')
canvas.create_polygon((200, 200), (200, 250), (250, 200), fill='green')
canvas.pack()
master.mainloop()
Объяснение:
import tkinter
master = tkinter.Tk()
canvas = tkinter.Canvas(master, bg='white', height=600, width=600)
canvas.create_rectangle((10, 10), (100, 100), fill='red')
canvas.create_polygon((200, 200), (200, 250), (250, 200), fill='green')
canvas.pack()
master.mainloop()