Skip to content

Commit b03c57a

Browse files
committed
fix python3 crash - convert colspan to int. fixes ripexz#10
1 parent 3014da2 commit b03c57a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

minesweeper.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def __init__(self, tk):
4949
"flags": Label(self.frame, text = "Flags: 0")
5050
}
5151
self.labels["time"].grid(row = 0, column = 0, columnspan = SIZE_Y) # top full width
52-
self.labels["mines"].grid(row = SIZE_X+1, column = 0, columnspan = SIZE_Y/2) # bottom left
53-
self.labels["flags"].grid(row = SIZE_X+1, column = SIZE_Y/2-1, columnspan = SIZE_Y/2) # bottom right
52+
self.labels["mines"].grid(row = SIZE_X+1, column = 0, columnspan = int(SIZE_Y/2)) # bottom left
53+
self.labels["flags"].grid(row = SIZE_X+1, column = int(SIZE_Y/2)-1, columnspan = int(SIZE_Y/2)) # bottom right
5454

5555
self.restart() # start game
5656
self.updateTimer() # init timer

0 commit comments

Comments
 (0)