I have a interface that launches FME scripts (FME is an Extract-Transform-Load software) and I would like to have a progress bar that informs the user on the progress of the script execution.
After going through some documentation and forums, I understand that a progress bar requires a value to run (ie values from a loop). The thing is, I don't really have values, I only have a script that runs and I would like to know how far it is.
So I have a signal: each time a button is clicked it emits a signal to change the value of the progress bar. But when I write ui.progressBar.setValue()
i need a value and I don't know what this value should be.
I don't know if i'm using the right tool or if there is something easier/better.
Here is a snippet I often use in my different scripts when they execute long operations (for example HTTP requests). This is just a basic spinning wheel that disapear after a few seconds. But you can also use signals & slots to hide it.
As you are not providing any code, I can't adapt it to fit your needs.
Also, here is the source of the snippet. There are a lot of interesting snippets on this wiki: Python.org wiki