# Loading cursor/bar for a button

**URL:** <https://forum.inductiveautomation.com/t/loading-cursor-bar-for-a-button/103227>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [March 4, 2025, 6:04pm UTC](https://forum.inductiveautomation.com/t/loading-cursor-bar-for-a-button/103227 "2025-03-04T18:04:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 4, 2025, 6:06pm UTC](https://forum.inductiveautomation.com/t/loading-cursor-bar-for-a-button/103227/2 "2025-03-04T18:06:29Z")

</div>

This:

> [@Update GUI via Asynchronous thread](https://forum.inductiveautomation.com/t/update-gui-via-asynchronous-thread/9666):
>
> 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() …

---

_[View the full topic](https://forum.inductiveautomation.com/t/loading-cursor-bar-for-a-button/103227)._
