def build(self): Window.clearcolor = (1, 1, 1, 1) ScreenEnonce = [] for i in range(5): Screen = ScreenLatex() nomScreen = "Enoncé" + str(i) Screen.build(ListeNomFigureQuestion[i] + ".png", ListeConsigne[i], nomScreen) ScreenEnonce.append(Screen) sm.current = ScreenEnonce[0].name return sm
def PreparerLatex(self,instance): self.BoutonLatex.text = "En cours" if self.pret == 1: sm.current = "Enoncé0" if self.pret == 0: self.BoutonLatex.text = "En Cours" FaireExercice() ScreenEnonce = [] ScreenCorrection = [] for i in range(5): Screen = ScreenLatex() nomScreen = "Enoncé" + str(i) Screen.build("Image/" + ListeNomFigureQuestion[i] + ".png",ListeConsigne[i],nomScreen) ScreenEnonce.append(Screen) for i in range(5): Screen = ScreenLatex() nomScreen = "Correction"+str(i) Screen.build("Image/"+ListeNomFigureReponse[i]+".png",ListeConsigneCorrection[i],nomScreen) ScreenCorrection.append(Screen) self.pret = 1 self.BoutonLatex.text = "C'est prêt ! "