this is also works:<br><br>k = 4
<p style="margin: 0px; text-indent: 0px;">if k ==4:</p>
<p style="margin: 0px; text-indent: 0px;"> print "mulitple"</p>
<p style="margin: 0px; text-indent: 0px;"> print "is ok"</p><br><span style="font-weight: 600; color: rgb(0, 128, 0);">>>></span><span style="font-weight: 600;"> k=4 if k==4: print "multiple" print "is ok" </span><br>
multiple is ok <br><br>multiple statement per execution become possible. wonderful.<br><br>is there any doc about what else has changed in the python console?<br><br><br><div class="gmail_quote">On Fri, Oct 9, 2009 at 9:41 PM, Volkan Kepoglu <span dir="ltr"><<a href="mailto:vkepoglu@gmail.com">vkepoglu@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">thanks a lot, it worked.<br><br><span style="font-weight: 600; color: rgb(0, 128, 0);">>>></span><span style="font-weight: 600;"> l = iface.mapCanvas().layer(0)</span><br>
<span style="font-weight: 600; color: rgb(0, 128, 0);">>>></span><span style="font-weight: 600;"> print <a href="http://l.name" target="_blank">l.name</a>()</span><br>
fire1998mah <br><br>but when it is executed without print and seeing that doing nothing, this gives an impression that the console is not working.<br><br>again, thank you both so much for very fast response.<div><div></div>
<div class="h5"><br><br><br><div class="gmail_quote">
On Fri, Oct 9, 2009 at 9:27 PM, Borys Jurgiel <span dir="ltr"><<a href="mailto:borysiasty@aster.pl" target="_blank">borysiasty@aster.pl</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dne pátek 09 října 2009 20:25:10 Volkan Kepoglu napsal(a):<br>
<div>> >>> layer1 = iface.mapCanvas().layer(0)<br>
><br>
> **>>> <a href="http://layer1.name" target="_blank">layer1.name</a>()<br>
><br>
</div>> *<br>
<br>
Try:<br>
<br>
print <a href="http://layer1.name" target="_blank">layer1.name</a>()<br>
<br>
Obviously it's less comfortable and I'll think about this issue!<br>
_______________________________________________<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/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br><br clear="all">
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Volkan Osman Kepoglu<br>PhD Candidate<br>GGIT Department in METU,<br>Ankara, Turkey.<br>