title: How to handle GUI, such as pysimplegui, from going into 'Not Responding' when running in an infinite loop?
body: <p>I have code that is running through PySimpleGUI that executes as expected but the problem is the GUI appears as not responding when running through the code. I want it to appear as its running without showing 'Not Responding' in the header of the window.</p>
  
  <p>I believe this is because of having an Infinite Loop of While True: but this is for the purpose of PySimpleGUI to run.</p>
  
  <p>Here is a snippet of my loop:</p>
  
  <pre class="lang-py prettyprint-override"><code>while True:
      event, values = window.Read()
      #print(event, values)
      some_functions()
  window.close()
  </code></pre>
  
  <p>I expect to have the window run normal when a button is pressed without going into not responding after few seconds, it is working as in running the code as expected but I want to hide the appearance of not responding somehow.</p>