From f1bc7d4fae5c1e533f0c4a401c534b4211b722e7 Mon Sep 17 00:00:00 2001 From: Jordan ERNST Date: Wed, 25 Apr 2018 16:51:19 +0200 Subject: [PATCH] Fix menu/banner affichage --- IFPass.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/IFPass.py b/IFPass.py index b10efe6..270be6c 100644 --- a/IFPass.py +++ b/IFPass.py @@ -293,18 +293,19 @@ while "The program is running": IFPassdir, printername, AcrobatReader, clientsfile, clientsbkpfile, imgdir, pdftemplate, pngtemplate, fonttemplate = initialisation() os.system('cls') + f = Figlet(font='big') + print(colored(f.renderText('IFPass'), 'cyan', attrs=['bold'])) + print('Version : ', version) + if version in ('dev', 'devnocam'): + print(colored("\nATTENTION : Il s'agit d'une version en cours de développement, potentiellement instable !", 'red')) + print('\nLe programme IFPass à été écrit par Jordan ERNST Q1 2018.') + print('Pour toute question ou problème contactez-moi à pro.ernst@gmail.com.\n') print('1 - Nouveau membre', '2 - Rechercher un membre', '3 - Quitter', sep='\n') choix = input('Choix : ') if choix == '1': while "the informations are incorrect": # Loop Filling informations os.system('cls') - f = Figlet(font='big') - print(colored(f.renderText('IFPass'), 'cyan', attrs=['bold'])) - print('Version : ', version) - if version in ('dev', 'devnocam'): - print(colored("\nATTENTION : Il s'agit d'une version en cours de développement, potentiellement instable !", 'red')) - print('\nLe programme IFPass à été écrit par Jordan ERNST Q1 2018.') - print('Pour toute question ou problème contactez-moi à pro.ernst@gmail.com.\n') + titre, firstname, surname, fullname = get_fullname() dateinsc = date.today() dateexp = dateinsc + timedelta(days=365)