I have a Python script that does some intensive processing of user files and may take some time. I create a user interface for him using Kivy, which allows the user to select a file, processing mode and display some messages in the process.
My problem is that when the Kivy main loop passes the calls to the base user interface, the window freezes.
From what I understood, the correct way to solve this is to create a separate process that will disable the script and from which it will send updates to the user interface.
However, I could not find an example of how to do this or any specification on how to send messages from a separate thread back to the application.
Can someone please give an example of how to do this correctly, or point me to the documentation related to the topic?
Update:
To support a supported program, I would like to avoid invoking processor cycle elements from the main thread and instead invoke one long process that returns to the updated GUI elements, such as a progress bar or text field. It seems that these elements can only be changed from the main kiwi. How to access them from the outside?
source
share