I’ve got a script I am experimenting with that can take a lot of time to execute, so I now use the system.util.invokeAsynchronous to run the script in a separate thread to keep the GUI from locking up. I am using the asynchronous thread to copy files from one place to another, and I would like to show the progress of the file copy with a progress bar. How would I go about this?
I am importing a few python libraries to do this.
import shutil def fileTransfer(): path = system.file.openFile() newPath = "F:\NewFolder" shutil.copy2(path, newPath) system.util.invokeAsynchronous(fileTransfer)