title: how to break out of mainloop() without closing the gui
body: <p>I have a simple python GUI that fills in a grid based on the values in an array, and I want this simple GUI to sit on screen while other functions run. The time for these other functions is indeterminate, so I can't simply call them at some regular interval using after(time, function) </p>
  
  <pre><code>def go(self):
      """
      Start the main GUI loop
      :return:
      """
      mainloop()
  </code></pre>
  
  <p>The mainloop starts in the go function, and I want to know if it is possible to either break out of mainloop without closing the window or to draw the GUI without calling mainloop at all?</p>
  
  <p>I know I can do </p>
  
  <pre><code>after(time, function)
  </code></pre>
  
  <p>but I'm at a loss as to what to call to kill the mainloop while keeping the GUI on-screen.</p>