title: How to exit a python application using tkinter and multiple scripts
body: <p>So Im stuck on this little problem I have with tkinter. I have created a gui that has two buttons. Button A is attached to a function that calls a python file which is a huge script that runs forever. </p>
  
  <pre><code>def startbot():
      subprocess.call("xxx.pyw",shell=True)
  </code></pre>
  
  <p>Button B is attached to a function called close which performs <code>root.quit()</code></p>
  
  <p>Anybody familiar with tkinter knows what I am about to say next in that when I click button A, tkinter freezes and I am not able to click Button B. I believe this is due to tkinter and something about threading however I am not very familiar with this topic and was wondering how can I fix this? Assuming I can fix this however I still have one more problem. If I am able to click button B will that just close tkinter or will it stop Button A's function and tkinter?</p>