import tkinter

root = tkinter.Tk()
canvas_size = 950
cell_width = 50


def draw(event):
    cellX = int(event.x/cell_width)
    cellY = int(event.y/cell_width)
    cellXTopLeft = cell_width*cellX
    cellYTopLeft = cell_width*cellY
    w.create_oval( cellXTopLeft, cellYTopLeft, cellXTopLeft+cell_width, cellYTopLeft+cell_width, fill = "red")

w = tkinter.Canvas(root, width=canvas_size, height=canvas_size)
w.bind("<Button-1>", draw)

for x in range(canvas_size):
    if x%cell_width == 0:
        w.create_line( x, 0, x, canvas_size )
        w.create_line( 0, x, canvas_size, x )

w.pack()
root.mainloop()

fd1aca77d0a90e7cf6e503824ed276f220b735ce
<mask token>


def draw(event):
    cellX = int(event.x / cell_width)
    cellY = int(event.y / cell_width)
    cellXTopLeft = cell_width * cellX
    cellYTopLeft = cell_width * cellY
    w.create_oval(cellXTopLeft, cellYTopLeft, cellXTopLeft + cell_width, 
        cellYTopLeft + cell_width, fill='red')


<mask token>

<mask token>


def draw(event):
    cellX = int(event.x / cell_width)
    cellY = int(event.y / cell_width)
    cellXTopLeft = cell_width * cellX
    cellYTopLeft = cell_width * cellY
    w.create_oval(cellXTopLeft, cellYTopLeft, cellXTopLeft + cell_width, 
        cellYTopLeft + cell_width, fill='red')


<mask token>
w.bind('<Button-1>', draw)
for x in range(canvas_size):
    if x % cell_width == 0:
        w.create_line(x, 0, x, canvas_size)
        w.create_line(0, x, canvas_size, x)
w.pack()
root.mainloop()

<mask token>
root = tkinter.Tk()
canvas_size = 950
cell_width = 50


def draw(event):
    cellX = int(event.x / cell_width)
    cellY = int(event.y / cell_width)
    cellXTopLeft = cell_width * cellX
    cellYTopLeft = cell_width * cellY
    w.create_oval(cellXTopLeft, cellYTopLeft, cellXTopLeft + cell_width, 
        cellYTopLeft + cell_width, fill='red')


w = tkinter.Canvas(root, width=canvas_size, height=canvas_size)
w.bind('<Button-1>', draw)
for x in range(canvas_size):
    if x % cell_width == 0:
        w.create_line(x, 0, x, canvas_size)
        w.create_line(0, x, canvas_size, x)
w.pack()
root.mainloop()

import tkinter
root = tkinter.Tk()
canvas_size = 950
cell_width = 50


def draw(event):
    cellX = int(event.x / cell_width)
    cellY = int(event.y / cell_width)
    cellXTopLeft = cell_width * cellX
    cellYTopLeft = cell_width * cellY
    w.create_oval(cellXTopLeft, cellYTopLeft, cellXTopLeft + cell_width, 
        cellYTopLeft + cell_width, fill='red')


w = tkinter.Canvas(root, width=canvas_size, height=canvas_size)
w.bind('<Button-1>', draw)
for x in range(canvas_size):
    if x % cell_width == 0:
        w.create_line(x, 0, x, canvas_size)
        w.create_line(0, x, canvas_size, x)
w.pack()
root.mainloop()

import tkinter

root = tkinter.Tk()
canvas_size = 950
cell_width = 50


def draw(event):
    cellX = int(event.x/cell_width)
    cellY = int(event.y/cell_width)
    cellXTopLeft = cell_width*cellX
    cellYTopLeft = cell_width*cellY
    w.create_oval( cellXTopLeft, cellYTopLeft, cellXTopLeft+cell_width, cellYTopLeft+cell_width, fill = "red")

w = tkinter.Canvas(root, width=canvas_size, height=canvas_size)
w.bind("<Button-1>", draw)

for x in range(canvas_size):
    if x%cell_width == 0:
        w.create_line( x, 0, x, canvas_size )
        w.create_line( 0, x, canvas_size, x )

w.pack()
root.mainloop()
