title: Display tk.Entry text in GUI as tk.Label (Python/Tkinter) Beginner level
body: <p>I am attempting to learn how to program a GUI application to display text entered in the tk.Entry widget with a tk.Label widget.</p>
  <p>code:</p>
  <pre><code>import tkinter as tk
  
  window = tk.Tk()
  
  
  def writelabel():
      label = tk.Label(window,text=&quot;abc&quot; + entry)
      label.pack()
  
  
  entry = tk.Entry(window)
  entry.pack()
  
  
  button = tk.Button(window,text=&quot;Display entry as GUI label&quot;, command=writelabel)
  button.pack()
  
  window.mainloop()
  </code></pre>
  <p>output:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;C:\Program Files\Python37\lib\tkinter\__init__.py&quot;, line 1705, in __call__
      return self.func(*args)
    File &quot;D:/Code/Entry to Label.py&quot;, line 7, in writelabel
      label = tk.Label(window,text=&quot;abc&quot; + entry)
  TypeError: can only concatenate str (not &quot;Entry&quot;) to str
  </code></pre>
  <p>I have already attempted to string the command:</p>
  <pre><code>label = tk.Label(str(window,text=&quot;abc&quot; + entry))
  </code></pre>
  <p>But I get the same output error as above:</p>
  <pre><code>TypeError: can only concatenate str (not &quot;Entry&quot;) to str
  </code></pre>
  <p>If I try to also string the entry widget :</p>
  <pre><code>entry = tk.Entry(str(window))
  </code></pre>
  <p>I get this error:</p>
  <pre><code>AttributeError: 'str' object has no attribute 'tk'
  </code></pre>
  <p>The outcome I desire is for the text that the end user enters in to the tk.entry widget to display as a tk.label widget when the end user clicks on the tk.button widget.</p>
  <p><em>I know the answer is simple, but I just cant see it.</em></p>