title: How to insert into tkinter Text widget
body: <p>I'm trying to insert a txt file read variable into the tkinter Text widget, but, I'm having this error: <code>_tkinter.TclError: bad window path name &quot;.!toplevel&quot;</code></p>
  <p>Check out my code:</p>
  <pre><code>textInfo = tk.Text(accountPopup, width=40, height=10, font=(&quot;Helvetica&quot;, 12))
              textInfo.pack(pady=20)
  
              path = './Contas/Info/'+txtName+'.txt'
  
              textFile = open(path , 'r')
              readedText = textFile.read()
  
              finalRead = str(readedText)
  
              textInfo.insert(tk.END, finalRead)
  </code></pre>