Re: [Qgis-user] Event loop in QGIS3

2022-08-16 Thread Nyall Dawson via Qgis-user
On Wed, 17 Aug 2022 at 06:54, Tudorache, Marian via Qgis-user wrote: > > Hi Chris, > > > > I read that article and based on it I found out that I need to put > processEvents() and I understand the logic in this. > > > > Someone said: > > In more recent QGIS versions the Python console no longer t

Re: [Qgis-user] Event loop in QGIS3

2022-08-16 Thread Patrick Dunford via Qgis-user
Thanks for this question. I had the same issue in my code, but running a console script in the Qgis application, printing to the console output would achieve the same thing. Is this applicable to scripts that run in the console? On 17/08/22 07:02, Tudorache, Marian via Qgis-user wrote: Hello

Re: [Qgis-user] Event loop in QGIS3

2022-08-16 Thread Tudorache, Marian via Qgis-user
Hi Chris, I read that article and based on it I found out that I need to put processEvents() and I understand the logic in this. Someone said: In more recent QGIS versions the Python console no longer triggers this event loop, as it's often quite dangerous to execute the loop in the middle of o

Re: [Qgis-user] Event loop in QGIS3

2022-08-16 Thread chris hermansen via Qgis-user
Marian and list, On Tue, Aug 16, 2022 at 12:02 PM Tudorache, Marian via Qgis-user < qgis-user@lists.osgeo.org> wrote: > Hello community, > > > > A while ago I sent a question about a problem with QMessageBox and message > bar does not get updated during a long process. > > In my example I create

[Qgis-user] Event loop in QGIS3

2022-08-16 Thread Tudorache, Marian via Qgis-user
Hello community, A while ago I sent a question about a problem with QMessageBox and message bar does not get updated during a long process. In my example I create a script like this. from qgis.PyQt import QtWidgets message = "Wait to open the airspace project..." msg = QtWidgets.QMessageBox() ms