if toucheK in "123456789": eff = False if interface.type(interface.find_closest(touche.x,touche.y)[0]) == "text" and interface.itemcget(interface.find_closest(touche.x,touche.y)[0],"tags") != "i current": interface.delete(interface.find_closest(touche.x,touche.y)[0]) eff = True for i in range(9): for j in range(9): if interface.find_closest(touche.x,touche.y)[0] == cases[i][j]: if not eff and not grille[i][j]: grille[i][j] = int(toucheK) if eff: grille[i][j] = int(toucheK) textCase[i][j] = False break if interface.find_closest(touche.x,touche.y)[0] == cases[i][j]: break affG(i,j,toucheK)