<p dir="ltr">Anita, just saw you commited a fix. Thanks!</p>
<p dir="ltr">May I suggest a small improvement? You should calculate the time it took, in ms, to render canvas and deduce that ms value from the animationFrameLength ms value in your singleShot call:</p>
<p dir="ltr">QTimer.singleShot(self.animationFrameLength,self.playAnimation)</p>
<p dir="ltr">Currently if you have a 1000ms frame length and canvas rendering takes 500ms, each frame will last 1500ms. Deducing the 500ms canvas rendering time from frame length will fix this.  If rendering ms > frame length ms, that'd allow you to skip singleShot and render next frame immediately. </p>

<p dir="ltr">Cheers and thanks again.</p>
<p dir="ltr">Math</p>
<div class="gmail_quote">On 6 Apr 2014 23:08, "Anita Graser" <<a href="mailto:anitagraser@gmx.at">anitagraser@gmx.at</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I need the painter from the renderComplete signal? Could you help me with the correct syntax?<br>
I have:<br>
<br>
   self.iface.mapCanvas().<u></u>renderComplete.connect(self.<u></u>waitAfterRenderComplete)<br>
<br>
and<br>
<br>
   def waitAfterRenderComplete(self, painter):<br>
<br>
but waitAfterRenderComplete does not receive a painter.<br>
<br>
Thanks and best wishes,<br>
Anita<br>
<br>
<br>
-- <br>
<a href="http://anitagraser.com" target="_blank">anitagraser.com</a><br>
______________________________<u></u>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-<u></u>developer</a><br>
</blockquote></div>