Kwargs will be passed through to the runner. :param callback: The function callback to run on this worker thread. Inherits from QRunnable to handler worker thread setup, signals and wrap-up. `object` data returned from processing, anything `tuple` (exctype, value, traceback.format_exc() ) Python from PyQt5 import QtWidgets, uic, QtGuiĭefines the signals available from a running worker thread. I don't understand because the 'Run' button works perfectly by showing the gif and running the main code without freezing the UI whereas my 'preparing' code is not showing the gif and freezing my UI until it finishes.ĭoes anyone understand the source of this issue?
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.