title: Simple loading screen in python Tkinter
body: <p>I am a beginner python learner, tkinter in particular. </p>
  
  <p>I want to make a 'loading screen' of a simple python script and closes after the script ends.</p>
  
  <p>But making a window requires a <code>mainloop</code> function which means that it will loops infinitely or wait for a user interaction(or so i think) and it will eliminate the idea of a 'loading' screen. </p>
  
  <p>I tried something but ends up with (Put Loading Screen) -> (Loading screen still have <code>mainloop</code>) -> (Can't Run Script because of waiting)</p>
  
  <p>What i wanted in detail was (Put Loading Script) -> (Run Script) -> (Script ends) -> (Loading Screen destroy)</p>
  
  <p>I got a lot of experience in other languages especially Java but java can just declare a frame -> run other things afterwards -> call a <code>frame.dispose()</code> and that's just it. Any tips or suggestions for a learner?</p>
  
  <blockquote>
    <p>EDIT: The script actually is a image processing algorithm that connects to a database and I can't just put a timed wait or sleep since the database can be expanded and it might be take longer than the allocated time.</p>
  </blockquote>