title: Cannot remove 1px white strip - even after adding highlightthickness?
body: <p>I followed this example since I was having issues removing white borders.</p>
  
  <p>OP was told to add highlightthickness and change x0, y0 and y1 to 0.  This worked all but for 1 px of white space/line?  Any ideas?  Thanks.   </p>
  
  <pre><code>from tkinter import *
  
  master = Tk()
  master.configure(bg='#333333')
  master.wm_attributes("-topmost", 1)
  TopLevel.overrideredirect(True)
  
  w = Canvas(master, width=150, height=40, bd=0, highlightthickness=0, relief='ridge',)
  w.config()
  w.pack(fill='both')
  
  color = 100
  x0 = 0
  y0 = 0
  x1 = 150
  y1 = 0
  
  while y0 &lt; 20 :
      r = color
      g = color
      b = color
      rgb = r, g, b
      Hex = '#%02x%02x%02x' % rgb
      w.create_line(x0, y0, x1, y1,fill=str(Hex), width=1)
      color = color - 2
      y0 = y0 + 1
      y1 = y1 + 1
  
  color = 10
  
  while y0 &lt; 40 :
      r = color
      g = color
      b = color
      rgb = r, g, b
      Hex = '#%02x%02x%02x' % rgb
      w.create_line(x0, y0, x1, y1,fill=str(Hex), width=1)
      color = color + 4
      y0 = y0 + 1
      y1 = y1 + 1
  
  mainloop()
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/tcFP0.png" alt="small remaining white border"></p>