From b03c57aa2c77cb384d62bd11f9427201516b3880 Mon Sep 17 00:00:00 2001 From: ripexz Date: Sun, 9 Aug 2020 11:25:50 +0200 Subject: [PATCH] fix python3 crash - convert colspan to int. fixes #10 --- minesweeper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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