|
|
|
@ -1,6 +1,8 @@
|
|
|
|
|
# Importation |
|
|
|
|
|
|
|
|
|
from formes import triangle_equilateral |
|
|
|
|
from formes import triangle_isocele |
|
|
|
|
from formes import rectangle |
|
|
|
|
|
|
|
|
|
# Fonction gestion des données |
|
|
|
|
|
|
|
|
@ -8,6 +10,7 @@ def determiner_immeuble(numero:int) -> dict:
|
|
|
|
|
caracteristiques = {} |
|
|
|
|
caracteristiques['couleur_facade'] = 'red' |
|
|
|
|
caracteristiques['numero'] = numero |
|
|
|
|
caracteristiques['coordonnees'] = - 300 + numero * 140 |
|
|
|
|
return caracteristiques |
|
|
|
|
|
|
|
|
|
# Fonctions d'interface graphique |
|
|
|
@ -17,7 +20,8 @@ def dessiner_facade(informations:dict):
|
|
|
|
|
facade['écriture'] = 'blue' |
|
|
|
|
facade['fond'] = informations['couleur_facade'] |
|
|
|
|
facade['épaisseur'] = 5 * informations['numero'] |
|
|
|
|
triangle_equilateral(50, facade, (0,0)) |
|
|
|
|
facade['bas_immeuble'] = informations['coordonnees'] |
|
|
|
|
triangle_isocele(30, 140, facade, ('coordonnees', 0)) |
|
|
|
|
|
|
|
|
|
def dessiner_porte(informations:dict): |
|
|
|
|
pass |
|
|
|
|