- Информатика
- Информатика 10 класс, tkinter
Информатика 10 класс, tkinter Доска:
import tkinter
SIZE = 600
LEN = 8
master = tkinter.Tk()
canvas = tkinter.Canvas(master, bg='white', height=SIZE, width=SIZE)
k = SIZE / LEN
for i in range(1, LEN):
x = i * k
canvas.create_line((x, 0), (x, SIZE), fill='red')
canvas.create_line((0, x), (SIZE, x), fill='red')
canvas.pack()
master.mainloop()