Commit 12b4adb2 authored by Maël RENAULT's avatar Maël RENAULT
Browse files

Update IHM_Sudoku.py

parent 118dd557
......@@ -105,6 +105,9 @@ class Grille_sudoku(QWidget):
item, ok = QInputDialog.getItem(self, "QInputDialog.getItem()",
"Chiffres", items, 0, False)
if ok and item:
pos = list(locate(self.digitButtons, lambda x: x == clickedButton))
pos = pos[0]
self.grille_utilise[pos % 9, pos - 9 * (pos % 9)] = item
clickedButton.setText(item)
def nouvelle_grille(self):
......
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