title: display the CMD console in a window in GUI - PySimpleGUI
body: <p>I'm creating a GUI using PySimpleGUI and want to have a frame that displays the output prints of all the functions in the program (as in the cmd console).
  I tried using (relevant code lines):</p>
  <pre><code>def hello():
      print('hello')
  
  layout = [[sg.Frame(&quot;Output console&quot;, [[sg.Text(&quot; &quot;, size=(0, 1), key='-OUTPUT-')]])]]
  window['-OUTPUT-'].update(hello())
  </code></pre>
  <p>I can see the print in the console but not in the Frame in the GUI.
  How can i do that?</p>