Loading gif loading gif windows 10

broken image

So I thought by cloning the same logic, I could display another loading gif at the init of my UI but it didn't work. My script has a button to Run my main script 'StartMyApp' and show an animated gif while MyApp is running without freezing my UI. Instead of showing the gif, the UI is blocked(froze) waiting for my preparing script to finish its job. When I execute my code, it shows immediately the UI, then it supposes to make some other preparing stuff and display a loading gif while these initialization tasks are running.

broken image