Added Image Viewer

This commit is contained in:
Jordon Brooks 2016-05-10 21:08:39 +01:00
parent e8d258876f
commit afccf17ecb
7 changed files with 146 additions and 44 deletions

View file

@ -3,7 +3,7 @@ from tkinter import *
from tkinter import messagebox
def mine_sweeper(colour="#39d972"):
def mine_sweeper(master, colour="#39d972"):
class MineSweeperCell(Label):
'''Creates a minesweeper square that is part of a grid'''
@ -256,7 +256,7 @@ def mine_sweeper(colour="#39d972"):
height = 10
numBombs = 30
global root
root = Tk()
root = Toplevel(master)
root.maxsize(270, 335)
root.minsize(270, 335)
root.title('Minesweeper')
@ -264,7 +264,4 @@ def mine_sweeper(colour="#39d972"):
game = MineSweeperGrid(root, width, height, numBombs)
game.mainloop()
__init__()
mine_sweeper()
__init__()