Le deuxième (pense à changer le prénom et le nom) :
#!/usr/bin/python3
# Coding: utf-8
# https://www.jeuxvideo.com/forums/0-51-0-1-0-1-0-blabla-18-25-ans.htm
# tkinter_drawing.py
from tkinter import *
root = Tk()
root.title("Sunrize")
WINDOW_WIDTH = 200
WINDOW_HEIGHT = 200
FIRSTNAME = "Titouan"
LASTNAME = "Dupont"
BG_COLOR = "white"
LINE_COLOR = "orange"
firstname = Label(root, text=f"dessin de {FIRSTNAME} {LASTNAME}", anchor="w")
firstname.pack(fill="both")
can = Canvas(root, bg=BG_COLOR, height=WINDOW_HEIGHT, width=WINDOW_WIDTH)
can.pack()
for i in range(0, 201, 20):
can.create_line(i, 0, 200 - i, 200, fill=LINE_COLOR, width=2)
can.create_line(0, i, 200, 200 -i , fill=LINE_COLOR, width=2)
root.mainloop()
Avec ça tu dois pouvoir faire le premier (qui est encore plus simple).