Commit 9f60d285 authored by Maël RENAULT's avatar Maël RENAULT
Browse files

Update IHM_Sudoku.py

parent 890e6e34
......@@ -109,18 +109,21 @@ class Grille_sudoku(QWidget):
def nouvelle_grille(self):
grl = Grille()
grille = grl.génération(5000)
items = ('Facile','Moyen','Difficile')
item, ok = QInputDialog.getItem(self, "QInputDialog.getItem()",
"Chiffres", items, 0, False)
"Difficulté", items, 0, False)
if ok and item == 'Facile':
grl.génération(5000)
grille = grl.supprimer_cases(15)
self.charger_une_grille(grille)
elif ok and item == 'Moyen':
grl.génération(5000)
grille = grl.supprimer_cases(25)
self.charger_une_grille(grille)
elif ok and item == 'Difficile':
grl.génération(5000)
grille = grl.supprimer_cases(35)
self.charger_une_grille(grille)
self.charger_une_grille(grille)
def open(self):
print(2)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment