Loading data, freezing app and change text.
-
wrote on 20 Nov 2022, 13:41 last edited by fornakter
Hello.
I make and download-from-youtube app with pytube.
When i set a link, and click 'Go' button for load data, app freezing.
Before freez i want to change label.text for something like 'loading data'
But text dont change before it freeze, it change after loading data.
Can i do it somehow?
At the end i want text like 'files ready' -
Hi,
Since you are using a long blocking operation you should rather rethink the design of your application.
Nothing worse than an application that does not give any feedback about what is going on.
You should check the callback support of the library to improve your application user experience.
-
wrote on 21 Nov 2022, 19:51 last edited by
Use thread to do the loading.
1/3