title: Restarting Kivy GUI only after closing window
body: <p>I tried to make the kivy window only restart after that i exit the window but i still can't find a way , any ideas ?</p>
  <pre><code>import sys
  
  import kivy, os
  from kivy.app import App
  from kivy.uix.label import Label
  from kivy.clock import Clock
  
  
  class MyApp(App):
      def build(self):
          Clock.schedule_once(self.restart, 10)
          return Label(text='Hello World One!')
  
      def restart(self, dt):
          os.execv(sys.executable, [sys.executable] + sys.argv)
  
  
  if __name__ == '__main__':
      MyApp().run()
  </code></pre>