def start(self): if self.menu == "accueil": self.accueil() elif self.menu == "dl_ready": sous_menu = Dl_Ready_Nav(self.count, self.category) sous_menu.accueil() self.categories = Data.get_categories() self.stay = sous_menu.stay self.menu = "accueil"
def delete(self, category): print(" ") print("Voulez-vous supprimmer la categorie ", category ,"? (y/n)") r = input('Réponse : ') if r == 'y': Data.delete_categories(category) self.categories = Data.get_categories() elif r == 'r' or r == 'n': pass elif r == 'q': self.on = False self.stay = False else: print("Désolé je n'ai pas compris.") self.delete(category)
def __init__(self): Menu.__init__(self) self.categories = Data.get_categories()
def __init__(self): Navigation.__init__(self) self.stay = True self.categories = Data.get_categories()