Skip to content

Commit

Permalink
fix python3 crash - convert colspan to int. fixes #10
Browse files Browse the repository at this point in the history
  • Loading branch information
ripexz committed Aug 9, 2020
1 parent 3014da2 commit b03c57a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minesweeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b03c57a

Please sign in to comment.