Browse Source

correctif d'une petite erreur

master
ROBINET Julien 4 weeks ago
parent
commit
0e9d92bb8b
  1. 2
      projet_tkinter_sujet5.py

2
projet_tkinter_sujet5.py

@ -9,7 +9,7 @@ def spawn_rectangle() :
position_x = randint(0, 400) position_x = randint(0, 400)
position_y = randint(0, 300) position_y = randint(0, 300)
while position_x+taille > 400 or position_y+taille > 300: while position_x+taille > 400 or position_y+taille > 300:
taille = randint(10, 31) taille = randint(10, 30)
position_x = randint(0, 400) position_x = randint(0, 400)
position_y = randint(0, 300) position_y = randint(0, 300)
rectangle = canva.create_rectangle(position_x, position_y, position_x+taille, rectangle = canva.create_rectangle(position_x, position_y, position_x+taille,

Loading…
Cancel
Save