<div dir="ltr"><div>Is this in a pyqgis plugin? You should be able to activate the select tool with iface.actionSelect().trigger(). You can also use actionSelectFreehand(), actionSelectPolygon(), actionSelectRadius(), or actionSelectRectange().<br><br></div>Eric<br></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jun 9, 2016 at 8:27 AM Martin Landa <<a href="mailto:landa.martin@gmail.com">landa.martin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I would like to duplicate some of standard QGIS tools in my plugin. In<br>
other words I have in my plugin an icon for selecting features. Is<br>
there any way how to automatically activate, after choosing this tool<br>
from my plugin, standard QGIS tool called 'Select Features by area or<br>
single click' without code duplication?<br>
<br>
Thanks a lot for any kind of hint in advance, Martin<br>
<br>
--<br>
Martin Landa<br>
<a href="http://geo.fsv.cvut.cz/gwiki/Landa" rel="noreferrer" target="_blank">http://geo.fsv.cvut.cz/gwiki/Landa</a><br>
<a href="http://gismentors.cz/mentors/landa" rel="noreferrer" target="_blank">http://gismentors.cz/mentors/landa</a><br>
_______________________________________________<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>