title: Horizontal Lines in Tkinter Python
body: <p>Trying to draw an 8 x 8 grid in Tkinter and I have the vertical lines drawn, but I can't seem to draw the horizontal lines correctly.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>from tkinter import *
  
  class CanvasGrid:
  def __init__(self):
      self.window = Tk()
      self.window.title("Grid")
      self.canvas = Canvas(self.window, width=128, height=128, bg="white")
      self.canvas.pack()
  
  def displayVertical(self):
      self.canvas.create_line(16, 0, 16, 128, fill="red", tags="line")
      self.canvas.create_line(32, 0, 32, 128, fill="red", tags="line")
      self.canvas.create_line(48, 0, 48, 128, fill="red", tags="line")
      self.canvas.create_line(64, 0, 64, 128, fill="red", tags="line")
      self.canvas.create_line(80, 0, 80, 128, fill="red", tags="line")
      self.canvas.create_line(96, 0, 96, 128, fill="red", tags="line")
      self.canvas.create_line(112, 0, 112, 128, fill="red", tags="line")
  
  
  def displayHorizontal(self):
      self.canvas.create_line(50, 50, 50, 50, fill="blue", tags="line")
  </code></pre>
  
  <p>Thanks! </p>