From db9fdbc2c2d19601632208f8a5f3d3de0fb758c0 Mon Sep 17 00:00:00 2001 From: ROBINET Julien Date: Tue, 24 Mar 2026 11:37:16 +0100 Subject: [PATCH] continuation --- projet_tkinter_sujet5.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/projet_tkinter_sujet5.py b/projet_tkinter_sujet5.py index d98ca14..148877a 100644 --- a/projet_tkinter_sujet5.py +++ b/projet_tkinter_sujet5.py @@ -1 +1,10 @@ -import tkinter as tk \ No newline at end of file +import tkinter as tk +from random import randint + +lst = ["red", "green", "blue", "yellow", "grey"] +indice_couleur = randint(0, len(lst)) +taille = randint(10, 31) + +fenetre = tk.Tk() + +canva = tk.Canvas(fenetre, width = 400, height = 300, bg = "white")