title: How to grid objects on a canvas in Tkinter?
body: <p>I am currently working on creating a chess game in python using the class Tkinter. I am making the chessboard right now. Here is some example code of what I am doing: </p>
  
  <pre><code>board_canvas = tkinter.Canvas(mainWindow, borderwidth=1)
  board_canvas.grid(row=1, column=0, sticky='ew', columnspan=8, rowspan=8)
  
  x = 100
  y = 100
  
  a1 = board_canvas.create_rectangle(0, 0, x, y, fill='black')
  a2 = board_canvas.create_rectangle(0, 0, x, y, fill='white')
  a3 = board_canvas.create_rectangle(0, 0, x, y, fill='black') 
  </code></pre>
  
  <p>My question is how to grid my canvas objects so that they don't all just sit on top of each other. Or if that doesn't work, what is a better way that I can layout my chessboard?</p>