We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3014da2 commit b03c57aCopy full SHA for b03c57a
minesweeper.py
@@ -49,8 +49,8 @@ def __init__(self, tk):
49
"flags": Label(self.frame, text = "Flags: 0")
50
}
51
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
+ 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
54
55
self.restart() # start game
56
self.updateTimer() # init timer
0 commit comments