# encoding:utf-8
importtkMessageBox
fromTkinter import Tk, Canvas, Frame
from random import randint
import sys
class Grid:
def __init__(self, master = None, window_width = 500, window_height = 500, grid_width =
25):
self.width = grid_width
self.bg = 7
self.start = 2
# 50 / 25
self.end = 18
# 450 / 25
self.color = ['yellow', 'red', 'pink', 'black', 'orange', 'green', 'purple', 'cyan']
self.canvas
=
Canvas(master,
width
=
window_width,
height
=
window_height,
bg
=