title: Tkinter - How to remove the border around a Frame?
body: <p>I have a program with several frames. Everything works well however I cannot figure out why the border around one of the frames exist.</p>
  
  <p>I have tried a few things.</p>
  
  <p>Here is how my frame is created:</p>
  
  <pre><code>kwListFrame = Frame(root)
  kwListFrame.grid(row = 1, column = 0, rowspan = 1, columnspan = 1, sticky = N+S+E+W)
  kwListFrame.columnconfigure(0, weight=1)
  kwBGimage = Label(kwListFrame, image= baseBGimage)
  kwBGimage.image = baseBGimage
  kwBGimage.place(x = 0, y = 0)
  kwBGimage.config(image = baseBGimage)
  </code></pre>
  
  <p>I have tried to change:</p>
  
  <pre><code>kwListFrame = Frame(root)
  </code></pre>
  
  <p>To:</p>
  
  <pre><code>kwListFrame = Frame(root, highlightthickness=0)
  #or
  kwListFrame = Frame(root, padx=0, pady=0)
  #or
  kwListFrame = Frame(root, bd=0)
  </code></pre>
  
  <p>And after that didnt work I tried:</p>
  
  <pre><code>kwListFrame = Frame(root, highlightbackground= "some color that matches frame")
  </code></pre>
  
  <p>I even tried to set the relief to flat even thought I know its default value is flat.</p>
  
  <p>As I have found several references to removing the border on canvas, I have not found anything related to <code>Frames</code> directly. So I may be using the <code>highlightthickness</code> and <code>highlightbackground</code> wrong but it did not throw an error so it seams like it should do the trick.</p>
  
  <p>Here is an image of the way the frame displays a thin border at the top.</p>
  
  <p><a href="https://i.stack.imgur.com/ZMcUF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ZMcUF.png" alt="enter image description here"></a></p>
  
  <p>I am not sure why the problem exist. Is it because I am using an image as the background?</p>
  
  <p>I did not want to post all my code here because it would be to much but if you want to see the full code my program is on <a href="https://github.com/Bacon-Tech/MINT" rel="noreferrer">Github</a></p>