ПОМОГИТЕ ПОЖАЛУЙСТА, вообще не понимаю в этом. 80 балов ваши!!! Сделайте по возможности все задания что есть на фотках



Ответы
Не сильно розумію, важко код скопіювати і запустити?
Завдання 1:
from tkinter import*
root = Tk ()
c= Canvas(root, width = 200, height = 200, bg='white')
c.pack()
c.create_line(10, 10, 190, 50)
c.create_line(100, 180, 100, 60, fill = 'green',
width = 5, activefill = 'lightgreen')
root.mainloop ()
Завдання 2:
from tkinter import *
root = Tk()
c = Canvas(root, width=200, height=200, bg='white')
c.pack()
c.create_rectangle(10, 10, 190, 60)
c.create_rectangle(60, 80, 140, 190, fill='yellow', outline='green', width=3, activedash=(5, 4))
root.mainloop()
Завдання 3:
from tkinter import *
root = Tk()
c = Canvas(root, width=200, height=200, bg='white')
c.pack()
c.create_polygon(100, 10, 20, 90, 180, 90)
c.create_polygon((40, 110), (160, 110), (190, 180), (10, 180), fill='orange', outline='black')
root.mainloop()
Завдання 3:
from tkinter import *
root = Tk()
c = Canvas(root, width=200, height=200, bg='white')
c.pack()
c.create_oval(50, 10, 150, 110, width=2)
c.create_oval(10, 120, 190, 190, fill='grey70', outline='white')
root.mainloop()
Завдання 3:
from tkinter import *
root = Tk()
c = Canvas(root, width=200, height=200, bg='white')
c.pack()
c.create_oval(10, 10, 190, 190, fill='lightgrey', outline='white')
c.create_arc(10, 10, 190, 190, start=0, extent=45, fill='red')
c.create_arc(10, 10, 190, 190, start=180, extent=25, fill='orange')
c.create_arc(10, 10, 190, 190, start=240, extent=100, style=CHORD, fill='green')
c.create_arc(10, 10, 190, 190, start=160, extent=-70, style=ARC,
outline='darkblue', width=5)
root.mainloop()




