title: Positioning labels within tkinter canvas
body: <p>I am making a board game with Tkinter. The board is a single picture. I don't know how to position the pawns on that picture.</p>
  
  <p>I tried putting the board and the pawns on the same canvas. It worked with a single pawn, but with multiple pawns it got messy. Pawns are represented by squares with matching color (i.e. blue).</p>
  
  <pre><code>def create_grid(self):
      self.grid_frame = Canvas(window)
      self.green_frame = Canvas(window)
      self.blue_frame = Canvas(window)
      self.grid_frame.grid(row=1, column=0)
      self.green_frame.grid(row=1, column=0)
      self.blue_frame.grid(row=1, column=0)
      self.grid_picture = PhotoImage(file="grid.PNG")
      self.grid_label = Label(self.grid_frame, image=self.grid_picture)
      self.grid_label.grid(row=0, column=0, columnspan=100, rowspan=10)
      self.green_picture = PhotoImage(file="green.png")
      self.green_symbol = Label(self.green_frame, image=self.green_picture)
      self.green_symbol.grid(row=9, column=2, columnspan=100, rowspan=10)
      self.blue_picture = PhotoImage(file="blue.png")
      self.blue_symbol = Label(self.blue_frame, image=self.blue_picture)
      self.blue_symbol.grid(row=9, column=7, columnspan=100, rowspan=10)
  </code></pre>
  
  <p>After using the function above, both pawns that I tried to put on the board land in the middle. Yet I need to divide the canvas and place the label precisely where I want. </p>
  
  <p>Here's the picture of the result I get:</p>
  
  <p><a href="https://i.stack.imgur.com/Lm3VJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Lm3VJ.png" alt="enter image description here"></a></p>