title: Textbox not showing inserts in tkinter
body: <pre><code>import tkinter as tk
  from tkinter import *
  import time
  
  
  def centertitle(e):
      w = int(root.winfo_width() / 3.5)
      s = 'Installation Wizard v1.0'.rjust(w//2)
      root.title(s)
  
  def textbox():
      textbox=Text(root.canvas, width = 62, height = 25, state=DISABLED)
      textbox.pack()
      textbox.insert(constants.INSERT,'You text goes here')
  
  #Configure tkinter window and title
  root = Tk()
  root.canvas = Canvas(root, width = 500, height = 404, bg=&quot;#3D3D3D&quot;, highlightthickness=0)
  root.canvas.pack(expand=True, fill=BOTH)
  
  root.iconbitmap(default='transparent.ico')  
  root.bind(&quot;&lt;Configure&gt;&quot;, centertitle)
  root.resizable(False, False)
  
  #Buttons
  btn = tk.Button(root, text='Start Install', height = 2, width = 15)
  btn['command'] =  lambda b=btn:[b.pack_forget(), b.place_forget(), textbox()]
  btn.pack(fill=BOTH)
  btn.place(x=190, y=181)
  
  root.mainloop()
  
  </code></pre>
  <p>What im trying to create, is a simple &quot;install&quot; gui, which i was gonna pack into an exe. all i really want is a button, that starts another python file (the one that installs everything) and when it calls print, i want it sent to the text box in the gui... its hard to explain but i hope you get what i mean</p>
  <p>could someone help me im really confused with guis</p>
  <p>code from other .py:</p>
  <pre><code>import os
  import sys
  import shutil
  import subprocess;
  from pathlib import Path
  import psutil
  import time
  
  
  def startProgram(program):
      SW_HIDE = 0
      info = subprocess.STARTUPINFO()
      info.dwFlags = subprocess.STARTF_USESHOWWINDOW
      info.wShowWindow = SW_HIDE
      subprocess.Popen(program, startupinfo=info)
      
  def terminateProgram(processName):
      for proc in psutil.process_iter():
          if processName.lower() in proc.name().lower():
              proc.terminate()
             
  def checkIfProcessRunning(processName):
      for proc in psutil.process_iter():
          try:
              if processName.lower() in proc.name().lower():
                  return True
          except (psutil.NoSuchProcess, psutil.AccessDenied, psutil.ZombieProcess):
              pass
      return False;
  
  st_inf = subprocess.STARTUPINFO()
  st_inf.dwFlags = st_inf.dwFlags | subprocess.STARTF_USESHOWWINDOW
  user_profile = os.environ['USERPROFILE']
  appdata_local = os.environ['LOCALAPPDATA']
  FolderDictionary = [(user_profile + '\spicetify-cli'), (user_profile + '\.spicetify'), (appdata_local + '\spotify')]
  
  for x in FolderDictionary:
      try:
          shutil.rmtree(x)
          print('&quot;%s&quot;, has been deleted.\n' % x)
      except OSError as e :
          print('&quot;%s&quot;, was not found.\n' % x)
          
  print(&quot;Installing Spotify.\n&quot;)
  terminateProgram('Spotify.exe')
  startProgram('.\\data\spotify-1-1-62-583.exe')
  while True:
      if checkIfProcessRunning('spotify-1-1-62-583.exe') == False:
          print(&quot;Finished Installing Spotify.\n&quot;)
          terminateProgram('Spotify.exe')
          break
  
  print(&quot;Installing Spicetify.\n&quot;)
  terminateProgram('powershell')
  subprocess.Popen([&quot;powershell&quot;,&quot;$v='2.5.0'; Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/khanhas/spicetify-cli/master/install.ps1' | Invoke-Expression\nspicetify\nspicetify backup apply enable-devtool&quot;], startupinfo=st_inf)
  while True:
      if checkIfProcessRunning('powershell') == False:
          print(&quot;Finished Installing Spicetify.\n&quot;)
          terminateProgram('Spotify.exe')
          break
  
  print(&quot;Downloading Themes.\n&quot;)
  terminateProgram('powershell')
  subprocess.Popen([&quot;powershell&quot;,'$sp_dir = &quot;${HOME}\spicetify-cli&quot;\n$zip_file = &quot;${sp_dir}\Themes.zip&quot;\n$download_uri = &quot;https://github.com/morpheusthewhite/spicetify-themes/archive/refs/heads/v2.zip&quot;\nInvoke-WebRequest -Uri $download_uri -UseBasicParsing -OutFile $zip_file\nExpand-Archive -Path $zip_file -DestinationPath $sp_dir -Force\nRemove-Item -Path $zip_file\nRemove-Item -LiteralPath &quot;${HOME}\spicetify-cli\Themes&quot; -Force -Recurse\nRename-Item &quot;${HOME}\spicetify-cli\spicetify-themes-2&quot; &quot;${HOME}\spicetify-cli\Themes&quot;\nRemove-Item &quot;${HOME}\spicetify-cli\Themes\*.*&quot; -Force -Recurse | Where { ! $_.PSIsContainer }\nRename-Item &quot;${HOME}\spicetify-cli\Themes\default&quot; &quot;${HOME}\spicetify-cli\Themes\SpicetifyDefault&quot;'], startupinfo=st_inf) 
  while True:
      if checkIfProcessRunning('powershell') == False:
          print(&quot;Finished Downloading Themes.\n&quot;)
          break
  </code></pre>