<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Good day</p>
<p>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.</p>
<p>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.<br>
</p>
<p>Using the message interface like this:</p>
<pre><span class="n">iface</span><span class="o">.</span><span class="n"><span class="highlighted">message</span><span class="highlighted">Bar</span></span><span class="p">()</span><span class="o">.</span><span class="n">push<span class="highlighted">Message</span></span><span class="p">
Or perhaps using the status bar
</span><span class="n">iface</span><span class="o">.</span><span class="n">status<span class="highlighted">Bar</span>Iface</span><span class="p">()</span><span class="o">.</span><span class="n">show<span class="highlighted">Message</span></span><span class="p">(</span><span class="s2">"Processed </span><span class="si">{}</span><span class="s2"> %"</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="nb">int</span><span class="p">(</span><span class="n">percent</span><span class="p">)))
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.
</span><span class="p"></span></pre>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
</body>
</html>