title: Label and value display
body: <p>I'm using a simple code that displays the square root of a number in a label, but for some reason the values get overlaped in a way that I couldn't avoid it, which means that, if I use it for a number that has a exact square root, then the answer goes messed up with the previous answer of many digits.</p>
  
  <p>I've been use the next code so far:</p>
  
  <pre><code>from Tkinter import *
  
  def square_calc():
      x = x_val.get()
      sqx = x ** 0.5
      print x, "** 0.5 =", sqx
      sqx_txt = Label(root, text = "x ** 0.5 =").grid(row=3, column=0)
      sqx_lab = Label(root, text = sqx).grid(row=3, column=1)
  
  root = Tk()
  root.title("Calculating square root")
  
  x_val = DoubleVar()
  
  x_lab   = Label(root, text = "x").grid(row=0, column=0)
  nmb     = Entry(root, textvariable = x_val).grid(row=0, column=1)
  calc    = Button(root, text = "Calculate", command=square_calc).grid(columnspan=2)
  y_lab   = Label(root, text = " ").grid(row=3, column=0)
  
  root.mainloop()
  </code></pre>