Skip to content

Commit e2c7ede

Browse files
author
falldog
committed
rv:[18]
[What] do nothing when Mouse RDown and the cell already fill in number
1 parent 183b3ac commit e2c7ede

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

SudokuBoxer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,9 @@ def onMouseRDown(self, evt):
506506

507507
x,y = evt.GetPosition()
508508
cellPos = self.pt2pos(x,y)
509+
if self.getNum(*cellPos) > 0:
510+
return
511+
509512
s = (App.nCellSize*0.55)*3
510513
pos = [cellPos[0]*App.nCellSize + (App.nCellSize-s)/2,
511514
cellPos[1]*App.nCellSize + (App.nCellSize-s)/2]

0 commit comments

Comments
 (0)