1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from easygui import *
msg = "Cliquez sur 'Analyser' pour résoudre votre panne"
title = "Dépannage PC"
ok_button = "Analyser"
msgbox( msg, title, ok_button)
msg = "Choisissez le type de problème rencontré:"
title = "Suivez le questionnaire"
choices = ["PC lent", "Troubles demarrage", "Autres"]
choice = choicebox(msg, title, choices)
def survey11y():
msg = "Votre PC chauffe t il facilement ?"
ynbox (msg, title)
def Choix1():
msg = "Est il débordé lorsque de nombreux onglets sont ouverts ?"
ynbox (msg, title)
def Choix2():
msg = "Votre PC s'allume ?"
ynbox (msg, title)
def Choix3():
msg = "Votre Pc plante sans raison ?"
ynbox (msg, title)
if choice == choices[0]:
Choix1()
elif choice == choices[1]:
Choix2()
elif choice == choices[2]:
Choix3() |
Partager