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.




_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to