title: how to add a left or right border to a tkinter Label
body: <p>The follwing code</p>
  <pre><code>import Tkinter as tk
  
  root = tk.Tk()
  labelA = tk.Label(root, text=&quot;hello&quot;).grid(row=0, column=0)
  labelB = tk.Label(root, text=&quot;world&quot;).grid(row=1, column=1)
  root.mainloop()
  </code></pre>
  <p>produces</p>
  <p><img src="https://i.stack.imgur.com/mXjfs.png" alt="enter image description here" /></p>
  <p>How can I add a partial border to the <code>Label</code> so that I have</p>
  <p><img src="https://i.stack.imgur.com/BLxnD.png" alt="enter image description here" /></p>
  <p>I see a that <code>borderwidth=</code> is a <a href="http://effbot.org/tkinterbook/label.htm" rel="nofollow noreferrer">possible option</a> of <code>Label</code> but it handles the four borders.</p>
  <p>NOTE: the question is not about padding the cell (which is the essence of <a href="https://stackoverflow.com/questions/4174575/adding-padding-to-a-tkinter-widget-only-on-one-side">the answer that was formerly linked in the duplication comment</a>)</p>