<div dir="ltr">Hi matthias,<div><br></div><div>I thought about that as well, but was unsure about what would be the best approach. Since the rubberband approach is not available I will try the backspace event then.</div><div><br></div><div>Thanks!!</div></div><br><div class="gmail_quote"><div dir="ltr">Matthias Kuhn <<a href="mailto:matthias@opengis.ch">matthias@opengis.ch</a>> escreveu no dia domingo, 27/03/2016 às 15:12:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Hi Alexandre,<br>
<br>
The rubberband belongs to the internals of the maptool. As long as
you don't want to subclass the maptool I think the easiest way is to
send the backspace event to the maptool instead. And I would even
say that this is semantically the correct thing to do.<br>
<br>
Matthias</div><div text="#000000" bgcolor="#FFFFFF"><br>
<br>
<div>On 03/27/2016 04:06 PM, Alexandre Neto
wrote:<br>
</div>
</div><div text="#000000" bgcolor="#FFFFFF"><blockquote type="cite">
<div dir="ltr">Hello all,
<div><br>
</div>
<div>Can anyone tell me how can I, using Python, access to the
"Add New Feature" QgsRubberBand methods? Or maybe point me to
same sample code?</div>
<div><br>
</div>
<div>I don't want to create a new rubberband, I would like to
access the one that is created by the drawing/editing
maptools.</div>
<div><br>
</div>
<div>I can reach the current mapTool with,</div>
<div><br>
</div>
<div>iface.mapCanvas().mapTool()</div>
<div><br>
</div>
<div>But I'm not understanding how to from there</div>
<div><br>
</div>
<div>I wanted to use removeLastPoint() (or the undo() in ). The
idea is to simulate the backspace key functionality with a
button to use in a tablet device (Windows).</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Alexandre Neto</div>
</div>
<div dir="ltr">-- <br>
</div>
<div dir="ltr">
<div>Alexandre Neto</div>
<div>---------------------</div>
<div>@AlexNetoGeo</div>
<div><a href="http://sigsemgrilhetas.wordpress.com" target="_blank">http://sigsemgrilhetas.wordpress.com</a></div>
<a href="http://gisunchained.wordpress.com" target="_blank">http://gisunchained.wordpress.com</a><br>
</div>
<br>
<fieldset></fieldset>
<br>
</blockquote></div><div text="#000000" bgcolor="#FFFFFF"><blockquote type="cite"><pre>_______________________________________________
Qgis-developer mailing list
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
</blockquote>
<br>
<pre cols="72">--
Matthias Kuhn
OPENGIS.ch - <a href="https://www.opengis.ch" target="_blank">https://www.opengis.ch</a>
Spatial • (Q)GIS • PostGIS • Open Source</pre>
</div>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div><div dir="ltr">-- <br></div><div dir="ltr"><div>Alexandre Neto</div><div>---------------------</div><div>@AlexNetoGeo</div><div><a href="http://sigsemgrilhetas.wordpress.com">http://sigsemgrilhetas.wordpress.com</a></div><a href="http://gisunchained.wordpress.com">http://gisunchained.wordpress.com</a><br></div>