diff --git a/minesweeper.py b/minesweeper.py index 0081c5c..4c32893 100644 --- a/minesweeper.py +++ b/minesweeper.py @@ -49,8 +49,8 @@ def __init__(self, tk): "flags": Label(self.frame, text = "Flags: 0") } self.labels["time"].grid(row = 0, column = 0, columnspan = SIZE_Y) # top full width - self.labels["mines"].grid(row = SIZE_X+1, column = 0, columnspan = SIZE_Y/2) # bottom left - self.labels["flags"].grid(row = SIZE_X+1, column = SIZE_Y/2-1, columnspan = SIZE_Y/2) # bottom right + self.labels["mines"].grid(row = SIZE_X+1, column = 0, columnspan = int(SIZE_Y/2)) # bottom left + self.labels["flags"].grid(row = SIZE_X+1, column = int(SIZE_Y/2)-1, columnspan = int(SIZE_Y/2)) # bottom right self.restart() # start game self.updateTimer() # init timer