import tkinter as tk
root = tk.Tk()root.title("Горизонтальная разлиновка окна")
canvas = tk.Canvas(root, width=400, height=400)canvas.pack()
x_position = 10y_position = 10
for i in range(1, 11):canvas.create_line(x_position, y_position, x_position+200, y_position, width=i)y_position += 20
root.mainloop()
import tkinter as tk
root = tk.Tk()
root.title("Горизонтальная разлиновка окна")
canvas = tk.Canvas(root, width=400, height=400)
canvas.pack()
x_position = 10
y_position = 10
for i in range(1, 11):
canvas.create_line(x_position, y_position, x_position+200, y_position, width=i)
y_position += 20
root.mainloop()