diff --git a/Miniprojet.py b/Miniprojet.py index 5b801d0..41080d6 100644 --- a/Miniprojet.py +++ b/Miniprojet.py @@ -1,6 +1,14 @@ # https://82.96.134.49/[...] import tkinter as tk +def graduations(plusGrand): + """crée des graduations sur le coté du caneva""" + graduations = [0,plusGrand*0.25,plusGrand*0.5,plusGrand*0.75,plusGrand] + caneva.create_text(5,7,text=graduations[4]) + caneva.create_text(155,7,text='AA') + + + def separerListe(nombres): """Fonction permettant de séparer une chaine de caractere et de convertir ses elements en nombres entiers et utilise la fonction plusGrand pour trouver le plus grand nombre @@ -12,23 +20,15 @@ et renvoie 1 si la liste fait plus de 10 nombres.""" lstInt += [int(nombreTempo)] if i+1>10: return lstInt , plusGrand(lstInt) , 10 , 1 - return lstInt , plusGrand(lstInt) , len(lstInt) , 0 - -def plusGrand(lst): - """Fonction permettant de trouver le plus grand nombre d'une liste de taille -maximum 10.""" - maxint = lst[0] - for i in range(1,len(lst)): - if maxint