Предмет: Информатика, автор: rahubanazar

Как сделать линию в Thonny?

Ответы

Автор ответа: saidakbar09
0

Ответ:

import tkinter as tk

# Создаем основное окно

root = tk.Tk()

root.title("Пример линии в Thonny")

# Создаем холст (Canvas) для рисования

canvas = tk.Canvas(root, width=300, height=200)

canvas.pack()

# Рисуем линию на холсте

canvas.create_line(50, 50, 250, 150, width=2, fill="blue")

# Запускаем главный цикл событий

root.mainloop()

Объяснение:

Похожие вопросы
Предмет: Биология, автор: maratovmadi09
Предмет: Геометрия, автор: tetiana9524
Предмет: Английский язык, автор: artem6282wowo
I. Translate the following words into English.

Відповідальний, нудний, справедливий, цікавий, низький, короткий, порівняння, похорон, тиск, надихати, творчий, неймовірно, покарання. сварити (сь), жахливий.

II. Read the sentences and complete them with the words from the box.

Shout, aggressive, pet student, smart, strict, honest, patient, responsible.

1. Nobody likes... people because they often fight.

2. Mr. Parker is never strict with Tom because Tom is his

3. Jane is so he has no problems with school.

4. My parents let me babysit my little brother because they know that I am

III. Match and copy the pairs in your notebook.

1. interactive

a chairs

2. front

b whiteboards

3. broken

e calls

4. good

d gate

5. telephone

6. reading

e list

21

:

f marks

IV. Complete with the Past Continuous of the verbs in brackets.

1. She (sleep).

2. Jill's grandparents... (fly) to Paris.

3. It... (snow) in Hawaii.

4. Jill's dad... (study) some brochures about computers.

5. Jill's friend (cut) her hair in a bathroom.

V. Translate the following sentences into English.

1. Том розповідам матері про свій день у школі.

2. Це було показано на дворі та всім в будинку.

3. Вона готувалася до сну. О 12 годині вечора вона спала.

4. Поки я розмовляв, інші слухали.

5. Вона вже закінчує свій новий проект.​
Предмет: Химия, автор: mrden4ik880