I am a beginner python learner, tkinter in particular.
I want to make a 'loading screen' of a simple python script and closes after the script ends.
But making a window requires a mainloop
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.
I tried something but ends up with (Put Loading Screen) -> (Loading screen still have mainloop
) -> (Can't Run Script because of waiting)
What i wanted in detail was (Put Loading Script) -> (Run Script) -> (Script ends) -> (Loading Screen destroy)
I got a lot of experience in other languages especially Java but java can just declare a frame -> run other things afterwards -> call a frame.dispose()
and that's just it. Any tips or suggestions for a learner?
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.