[Qgis-user] Refreshing user interface during script execution
Patrick Dunford
enzedrailmaps at gmail.com
Sun Oct 3 05:01:37 PDT 2021
Good day
I have a script that runs a number of processing steps that take a long
time to execute and during this execution the only way I can display
progress messages is by printing to the Python scripting console.
I would prefer to be using the message bar to display the messages but
the screen does not update meaning these messages are not displayed.
They only get displayed if there is also a print statement sending
output to the console. The other parts of the user interface also do not
update.
Using the message interface like this:
iface.messageBar().pushMessageOr perhaps using the status bar
iface.statusBarIface().showMessage("Processed {}%".format(int(percent)))
They all have the same basic issue. I also want to know how I can
interrupt the script execution when it is running, at the moment the
only option I have is to kill the Qgis application.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20211004/24445b74/attachment.html>
More information about the Qgis-user
mailing list